home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 6 code / TCP.sea / TCP / NewsWatcher / NW Source / Shared Code / Libraries & Misc / MyMacTCP.h < prev    next >
MacBinary  |  1995-01-08  |  28.0 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sat Jan 7 20:37:16 1995, modified Sat Jan 7 20:37:16 1995, creator 'MMCC', type ASCII, 27951 bytes "MyMacTCP.h" , at 0x6daf 410 bytes resource default (weak)
99% file data default
55% TrID Mac Compact Pro archive default
33% TrID Macintosh plain text (MacBinary) default
11% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 4d 79 4d 61 63 54 | 43 50 2e 68 00 00 00 00 |..MyMacT|CP.h....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 01 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 6d 2f 00 | 00 01 9a ab 34 f2 4c ab |.....m/.|....4.L.|
|00000060| 34 f2 4c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |4.L.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 6a 7a 00 00 |........|....jz..|
|00000080| 2f 2a 0d 20 09 46 69 6c | 65 3a 09 09 4d 61 63 54 |/*. .Fil|e:..MacT|
|00000090| 43 50 2e 68 0d 20 0d 20 | 09 43 6f 70 79 72 69 67 |CP.h. . |.Copyrig|
|000000a0| 68 74 3a 09 a9 20 31 39 | 38 34 2d 31 39 39 34 20 |ht:.. 19|84-1994 |
|000000b0| 62 79 20 41 70 70 6c 65 | 20 43 6f 6d 70 75 74 65 |by Apple| Compute|
|000000c0| 72 2c 20 49 6e 63 2e 0d | 20 09 09 09 09 41 6c 6c |r, Inc..| ....All|
|000000d0| 20 72 69 67 68 74 73 20 | 72 65 73 65 72 76 65 64 | rights |reserved|
|000000e0| 2e 0d 20 0d 20 09 56 65 | 72 73 69 6f 6e 3a 09 55 |.. . .Ve|rsion:.U|
|000000f0| 6e 69 76 65 72 73 61 6c | 20 49 6e 74 65 72 66 61 |niversal| Interfa|
|00000100| 63 65 73 20 32 2e 30 61 | 33 20 20 45 54 4f 20 23 |ces 2.0a|3 ETO #|
|00000110| 31 36 2c 20 4d 50 57 20 | 70 72 65 72 65 6c 65 61 |16, MPW |prerelea|
|00000120| 73 65 2e 20 20 46 72 69 | 64 61 79 2c 20 4e 6f 76 |se. Fri|day, Nov|
|00000130| 65 6d 62 65 72 20 31 31 | 2c 20 31 39 39 34 2e 20 |ember 11|, 1994. |
|00000140| 0d 20 09 09 09 09 57 69 | 74 68 20 61 64 64 69 74 |. ....Wi|th addit|
|00000150| 69 6f 6e 73 20 61 6e 64 | 20 63 6f 72 72 65 63 74 |ions and| correct|
|00000160| 69 6f 6e 73 20 62 79 20 | 45 72 69 63 20 53 63 6f |ions by |Eric Sco|
|00000170| 75 74 65 6e 2c 20 46 72 | 69 64 61 79 2c 20 44 65 |uten, Fr|iday, De|
|00000180| 63 65 6d 62 65 72 20 32 | 2c 20 31 39 39 34 2e 0d |cember 2|, 1994..|
|00000190| 20 0d 20 09 42 75 67 73 | 3f 3a 09 09 49 66 20 79 | . .Bugs|?:..If y|
|000001a0| 6f 75 20 66 69 6e 64 20 | 61 20 70 72 6f 62 6c 65 |ou find |a proble|
|000001b0| 6d 20 77 69 74 68 20 74 | 68 69 73 20 66 69 6c 65 |m with t|his file|
|000001c0| 2c 20 73 65 6e 64 20 74 | 68 65 20 66 69 6c 65 20 |, send t|he file |
|000001d0| 61 6e 64 20 76 65 72 73 | 69 6f 6e 0d 20 09 09 09 |and vers|ion. ...|
|000001e0| 09 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 28 66 72 |.informa|tion (fr|
|000001f0| 6f 6d 20 61 62 6f 76 65 | 29 20 61 6e 64 20 74 68 |om above|) and th|
|00000200| 65 20 70 72 6f 62 6c 65 | 6d 20 64 65 73 63 72 69 |e proble|m descri|
|00000210| 70 74 69 6f 6e 20 74 6f | 3a 0d 20 0d 20 09 09 09 |ption to|:. . ...|
|00000220| 09 09 49 6e 74 65 72 6e | 65 74 3a 09 61 70 70 6c |..Intern|et:.appl|
|00000230| 65 2e 62 75 67 73 40 61 | 70 70 6c 65 6c 69 6e 6b |e.bugs@a|pplelink|
|00000240| 2e 61 70 70 6c 65 2e 63 | 6f 6d 0d 20 09 09 09 09 |.apple.c|om. ....|
|00000250| 09 41 70 70 6c 65 4c 69 | 6e 6b 3a 09 41 50 50 4c |.AppleLi|nk:.APPL|
|00000260| 45 2e 42 55 47 53 0d 20 | 09 09 09 09 09 0d 20 09 |E.BUGS. |...... .|
|00000270| 54 43 50 53 65 6e 64 50 | 42 20 65 72 72 6f 72 20 |TCPSendP|B error |
|00000280| 66 69 78 65 64 20 62 79 | 20 6a 6c 6e 2c 20 31 2f |fixed by| jln, 1/|
|00000290| 37 2f 39 35 2e 0d 20 0d | 2a 2f 0d 0d 23 69 66 6e |7/95.. .|*/..#ifn|
|000002a0| 64 65 66 20 5f 5f 4d 41 | 43 54 43 50 5f 5f 0d 23 |def __MA|CTCP__.#|
|000002b0| 64 65 66 69 6e 65 20 5f | 5f 4d 41 43 54 43 50 5f |define _|_MACTCP_|
|000002c0| 5f 0d 0d 0d 23 69 66 6e | 64 65 66 20 5f 5f 54 59 |_...#ifn|def __TY|
|000002d0| 50 45 53 5f 5f 0d 23 69 | 6e 63 6c 75 64 65 20 3c |PES__.#i|nclude <|
|000002e0| 54 79 70 65 73 2e 68 3e | 0d 23 65 6e 64 69 66 0d |Types.h>|.#endif.|
|000002f0| 2f 2a 09 23 69 6e 63 6c | 75 64 65 20 3c 43 6f 6e |/*.#incl|ude <Con|
|00000300| 64 69 74 69 6f 6e 61 6c | 4d 61 63 72 6f 73 2e 68 |ditional|Macros.h|
|00000310| 3e 09 09 09 09 09 09 09 | 09 2a 2f 0d 0d 23 69 66 |>.......|.*/..#if|
|00000320| 6e 64 65 66 20 5f 5f 41 | 50 50 4c 45 54 41 4c 4b |ndef __A|PPLETALK|
|00000330| 5f 5f 0d 23 69 6e 63 6c | 75 64 65 20 3c 41 70 70 |__.#incl|ude <App|
|00000340| 6c 65 54 61 6c 6b 2e 68 | 3e 0d 23 65 6e 64 69 66 |leTalk.h|>.#endif|
|00000350| 0d 2f 2a 09 23 69 6e 63 | 6c 75 64 65 20 3c 4f 53 |./*.#inc|lude <OS|
|00000360| 55 74 69 6c 73 2e 68 3e | 09 09 09 09 09 09 09 09 |Utils.h>|........|
|00000370| 09 09 2a 2f 0d 2f 2a 09 | 09 23 69 6e 63 6c 75 64 |..*/./*.|.#includ|
|00000380| 65 20 3c 4d 69 78 65 64 | 4d 6f 64 65 2e 68 3e 09 |e <Mixed|Mode.h>.|
|00000390| 09 09 09 09 09 09 09 09 | 2a 2f 0d 2f 2a 09 09 23 |........|*/./*..#|
|000003a0| 69 6e 63 6c 75 64 65 20 | 3c 4d 65 6d 6f 72 79 2e |include |<Memory.|
|000003b0| 68 3e 09 09 09 09 09 09 | 09 09 09 09 2a 2f 0d 0d |h>......|....*/..|
|000003c0| 23 69 66 64 65 66 20 5f | 5f 63 70 6c 75 73 70 6c |#ifdef _|_cpluspl|
|000003d0| 75 73 0d 65 78 74 65 72 | 6e 20 22 43 22 20 7b 0d |us.exter|n "C" {.|
|000003e0| 23 65 6e 64 69 66 0d 0d | 23 69 66 20 47 45 4e 45 |#endif..|#if GENE|
|000003f0| 52 41 54 49 4e 47 50 4f | 57 45 52 50 43 0d 23 70 |RATINGPO|WERPC.#p|
|00000400| 72 61 67 6d 61 20 6f 70 | 74 69 6f 6e 73 20 61 6c |ragma op|tions al|
|00000410| 69 67 6e 3d 6d 61 63 36 | 38 6b 0d 23 65 6e 64 69 |ign=mac6|8k.#endi|
|00000420| 66 0d 0d 23 69 66 64 65 | 66 20 5f 5f 43 46 4d 36 |f..#ifde|f __CFM6|
|00000430| 38 4b 5f 5f 0d 23 70 72 | 61 67 6d 61 20 6c 69 62 |8K__.#pr|agma lib|
|00000440| 5f 65 78 70 6f 72 74 20 | 6f 6e 0d 23 65 6e 64 69 |_export |on.#endi|
|00000450| 66 0d 0d 0d 65 6e 75 6d | 20 7b 0d 09 69 6e 50 72 |f...enum| {..inPr|
|00000460| 6f 67 72 65 73 73 09 09 | 09 09 09 3d 20 31 2c 09 |ogress..|...= 1,.|
|00000470| 09 09 09 09 09 09 2f 2a | 20 49 2f 4f 20 69 6e 20 |....../*| I/O in |
|00000480| 70 72 6f 67 72 65 73 73 | 20 2a 2f 0d 09 69 70 42 |progress| */..ipB|
|00000490| 61 64 4c 61 70 45 72 72 | 09 09 09 09 09 3d 20 2d |adLapErr|.....= -|
|000004a0| 32 33 30 30 30 2c 09 09 | 09 09 09 09 2f 2a 20 62 |23000,..|..../* b|
|000004b0| 61 64 20 6e 65 74 77 6f | 72 6b 20 63 6f 6e 66 69 |ad netwo|rk confi|
|000004c0| 67 75 72 61 74 69 6f 6e | 20 2a 2f 0d 09 69 70 42 |guration| */..ipB|
|000004d0| 61 64 43 6e 66 67 45 72 | 72 09 09 09 09 3d 20 2d |adCnfgEr|r....= -|
|000004e0| 32 33 30 30 31 2c 09 09 | 09 09 09 09 2f 2a 20 62 |23001,..|..../* b|
|000004f0| 61 64 20 49 50 20 63 6f | 6e 66 69 67 75 72 61 74 |ad IP co|nfigurat|
|00000500| 69 6f 6e 20 65 72 72 6f | 72 20 2a 2f 0d 09 69 70 |ion erro|r */..ip|
|00000510| 4e 6f 43 6e 66 67 45 72 | 72 09 09 09 09 09 3d 20 |NoCnfgEr|r.....= |
|00000520| 2d 32 33 30 30 32 2c 09 | 09 09 09 09 09 2f 2a 20 |-23002,.|...../* |
|00000530| 6d 69 73 73 69 6e 67 20 | 49 50 20 6f 72 20 4c 41 |missing |IP or LA|
|00000540| 50 20 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |P config|uration |
|00000550| 65 72 72 6f 72 20 2a 2f | 0d 09 69 70 4c 6f 61 64 |error */|..ipLoad|
|00000560| 45 72 72 09 09 09 09 09 | 3d 20 2d 32 33 30 30 33 |Err.....|= -23003|
|00000570| 2c 09 09 09 09 09 09 2f | 2a 20 65 72 72 6f 72 20 |,....../|* error |
|00000580| 69 6e 20 4d 61 63 54 43 | 50 20 6c 6f 61 64 20 2a |in MacTC|P load *|
|00000590| 2f 0d 09 69 70 42 61 64 | 41 64 64 72 09 09 09 09 |/..ipBad|Addr....|
|000005a0| 09 3d 20 2d 32 33 30 30 | 34 2c 09 09 09 09 09 09 |.= -2300|4,......|
|000005b0| 2f 2a 20 65 72 72 6f 72 | 20 69 6e 20 67 65 74 74 |/* error| in gett|
|000005c0| 69 6e 67 20 61 64 64 72 | 65 73 73 20 2a 2f 0d 09 |ing addr|ess */..|
|000005d0| 63 6f 6e 6e 65 63 74 69 | 6f 6e 43 6c 6f 73 69 6e |connecti|onClosin|
|000005e0| 67 09 09 09 3d 20 2d 32 | 33 30 30 35 2c 09 09 09 |g...= -2|3005,...|
|000005f0| 09 09 09 2f 2a 20 63 6f | 6e 6e 65 63 74 69 6f 6e |.../* co|nnection|
|00000600| 20 69 73 20 63 6c 6f 73 | 69 6e 67 20 2a 2f 0d 09 | is clos|ing */..|
|00000610| 69 6e 76 61 6c 69 64 4c | 65 6e 67 74 68 09 09 09 |invalidL|ength...|
|00000620| 09 3d 20 2d 32 33 30 30 | 36 2c 0d 09 63 6f 6e 6e |.= -2300|6,..conn|
|00000630| 65 63 74 69 6f 6e 45 78 | 69 73 74 73 09 09 09 3d |ectionEx|ists...=|
|00000640| 20 2d 32 33 30 30 37 2c | 09 09 09 09 09 09 2f 2a | -23007,|....../*|
|00000650| 20 72 65 71 75 65 73 74 | 20 63 6f 6e 66 6c 69 63 | request| conflic|
|00000660| 74 73 20 77 69 74 68 20 | 65 78 69 73 74 69 6e 67 |ts with |existing|
|00000670| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 2a 2f 0d 09 | connect|ion */..|
|00000680| 63 6f 6e 6e 65 63 74 69 | 6f 6e 44 6f 65 73 6e 74 |connecti|onDoesnt|
|00000690| 45 78 69 73 74 09 09 3d | 20 2d 32 33 30 30 38 2c |Exist..=| -23008,|
|000006a0| 09 09 09 09 09 09 2f 2a | 20 63 6f 6e 6e 65 63 74 |....../*| connect|
|000006b0| 69 6f 6e 20 64 6f 65 73 | 20 6e 6f 74 20 65 78 69 |ion does| not exi|
|000006c0| 73 74 20 2a 2f 0d 09 69 | 6e 73 75 66 66 69 63 69 |st */..i|nsuffici|
|000006d0| 65 6e 74 52 65 73 6f 75 | 72 63 65 73 09 09 3d 20 |entResou|rces..= |
|000006e0| 2d 32 33 30 30 39 2c 09 | 09 09 09 09 09 2f 2a 20 |-23009,.|...../* |
|000006f0| 69 6e 73 75 66 66 69 63 | 69 65 6e 74 20 72 65 73 |insuffic|ient res|
|00000700| 6f 75 72 63 65 73 20 74 | 6f 20 70 65 72 66 6f 72 |ources t|o perfor|
|00000710| 6d 20 72 65 71 75 65 73 | 74 20 2a 2f 0d 09 69 6e |m reques|t */..in|
|00000720| 76 61 6c 69 64 53 74 72 | 65 61 6d 50 74 72 09 09 |validStr|eamPtr..|
|00000730| 09 3d 20 2d 32 33 30 31 | 30 2c 0d 09 73 74 72 65 |.= -2301|0,..stre|
|00000740| 61 6d 41 6c 72 65 61 64 | 79 4f 70 65 6e 09 09 09 |amAlread|yOpen...|
|00000750| 3d 20 2d 32 33 30 31 31 | 2c 0d 09 63 6f 6e 6e 65 |= -23011|,..conne|
|00000760| 63 74 69 6f 6e 54 65 72 | 6d 69 6e 61 74 65 64 09 |ctionTer|minated.|
|00000770| 09 3d 20 2d 32 33 30 31 | 32 2c 0d 09 69 6e 76 61 |.= -2301|2,..inva|
|00000780| 6c 69 64 42 75 66 50 74 | 72 09 09 09 09 3d 20 2d |lidBufPt|r....= -|
|00000790| 32 33 30 31 33 2c 0d 09 | 69 6e 76 61 6c 69 64 52 |23013,..|invalidR|
|000007a0| 44 53 09 09 09 09 09 3d | 20 2d 32 33 30 31 34 2c |DS.....=| -23014,|
|000007b0| 0d 09 69 6e 76 61 6c 69 | 64 57 44 53 09 09 09 09 |..invali|dWDS....|
|000007c0| 09 3d 20 2d 32 33 30 31 | 34 2c 0d 09 6f 70 65 6e |.= -2301|4,..open|
|000007d0| 46 61 69 6c 65 64 09 09 | 09 09 09 3d 20 2d 32 33 |Failed..|...= -23|
|000007e0| 30 31 35 2c 0d 09 63 6f | 6d 6d 61 6e 64 54 69 6d |015,..co|mmandTim|
|000007f0| 65 6f 75 74 09 09 09 09 | 3d 20 2d 32 33 30 31 36 |eout....|= -23016|
|00000800| 2c 0d 09 64 75 70 6c 69 | 63 61 74 65 53 6f 63 6b |,..dupli|cateSock|
|00000810| 65 74 09 09 09 09 3d 20 | 2d 32 33 30 31 37 0d 7d |et....= |-23017.}|
|00000820| 3b 0d 0d 2f 2a 20 45 72 | 72 6f 72 20 63 6f 64 65 |;../* Er|ror code|
|00000830| 73 20 66 72 6f 6d 20 69 | 6e 74 65 72 6e 61 6c 20 |s from i|nternal |
|00000840| 49 50 20 66 75 6e 63 74 | 69 6f 6e 73 20 2a 2f 0d |IP funct|ions */.|
|00000850| 65 6e 75 6d 20 7b 0d 09 | 69 70 44 6f 6e 74 46 72 |enum {..|ipDontFr|
|00000860| 61 67 45 72 72 09 09 09 | 09 3d 20 2d 32 33 30 33 |agErr...|.= -2303|
|00000870| 32 2c 09 09 09 09 09 09 | 2f 2a 20 50 61 63 6b 65 |2,......|/* Packe|
|00000880| 74 20 74 6f 6f 20 6c 61 | 72 67 65 20 74 6f 20 73 |t too la|rge to s|
|00000890| 65 6e 64 20 77 2f 6f 20 | 66 72 61 67 6d 65 6e 74 |end w/o |fragment|
|000008a0| 69 6e 67 20 2a 2f 0d 09 | 69 70 44 65 73 74 44 65 |ing */..|ipDestDe|
|000008b0| 61 64 45 72 72 09 09 09 | 09 3d 20 2d 32 33 30 33 |adErr...|.= -2303|
|000008c0| 33 2c 09 09 09 09 09 09 | 2f 2a 20 64 65 73 74 69 |3,......|/* desti|
|000008d0| 6e 61 74 69 6f 6e 20 6e | 6f 74 20 72 65 73 70 6f |nation n|ot respo|
|000008e0| 6e 64 69 6e 67 20 2a 2f | 0d 09 69 63 6d 70 45 63 |nding */|..icmpEc|
|000008f0| 68 6f 54 69 6d 65 6f 75 | 74 45 72 72 09 09 09 3d |hoTimeou|tErr...=|
|00000900| 20 2d 32 33 30 33 35 2c | 09 09 09 09 09 09 2f 2a | -23035,|....../*|
|00000910| 20 49 43 4d 50 20 65 63 | 68 6f 20 74 69 6d 65 64 | ICMP ec|ho timed|
|00000920| 2d 6f 75 74 20 2a 2f 0d | 09 69 70 4e 6f 46 72 61 |-out */.|.ipNoFra|
|00000930| 67 4d 65 6d 45 72 72 09 | 09 09 09 3d 20 2d 32 33 |gMemErr.|...= -23|
|00000940| 30 33 36 2c 09 09 09 09 | 09 09 2f 2a 20 6e 6f 20 |036,....|../* no |
|00000950| 6d 65 6d 6f 72 79 20 74 | 6f 20 73 65 6e 64 20 66 |memory t|o send f|
|00000960| 72 61 67 6d 65 6e 74 65 | 64 20 70 6b 74 20 2a 2f |ragmente|d pkt */|
|00000970| 0d 09 69 70 52 6f 75 74 | 65 45 72 72 09 09 09 09 |..ipRout|eErr....|
|00000980| 09 3d 20 2d 32 33 30 33 | 37 2c 09 09 09 09 09 09 |.= -2303|7,......|
|00000990| 2f 2a 20 63 61 6e 27 74 | 20 72 6f 75 74 65 20 70 |/* can't| route p|
|000009a0| 61 63 6b 65 74 20 6f 66 | 66 2d 6e 65 74 20 2a 2f |acket of|f-net */|
|000009b0| 0d 09 6e 61 6d 65 53 79 | 6e 74 61 78 45 72 72 09 |..nameSy|ntaxErr.|
|000009c0| 09 09 09 3d 20 2d 32 33 | 30 34 31 2c 0d 09 63 61 |...= -23|041,..ca|
|000009d0| 63 68 65 46 61 75 6c 74 | 09 09 09 09 09 3d 20 2d |cheFault|.....= -|
|000009e0| 32 33 30 34 32 2c 0d 09 | 6e 6f 52 65 73 75 6c 74 |23042,..|noResult|
|000009f0| 50 72 6f 63 09 09 09 09 | 3d 20 2d 32 33 30 34 33 |Proc....|= -23043|
|00000a00| 2c 0d 09 6e 6f 4e 61 6d | 65 53 65 72 76 65 72 09 |,..noNam|eServer.|
|00000a10| 09 09 09 3d 20 2d 32 33 | 30 34 34 2c 0d 09 61 75 |...= -23|044,..au|
|00000a20| 74 68 4e 61 6d 65 45 72 | 72 09 09 09 09 09 3d 20 |thNameEr|r.....= |
|00000a30| 2d 32 33 30 34 35 2c 0d | 09 6e 6f 41 6e 73 45 72 |-23045,.|.noAnsEr|
|00000a40| 72 09 09 09 09 09 3d 20 | 2d 32 33 30 34 36 2c 0d |r.....= |-23046,.|
|00000a50| 09 64 6e 72 45 72 72 09 | 09 09 09 09 09 3d 20 2d |.dnrErr.|.....= -|
|00000a60| 32 33 30 34 37 2c 0d 09 | 6f 75 74 4f 66 4d 65 6d |23047,..|outOfMem|
|00000a70| 6f 72 79 09 09 09 09 09 | 3d 20 2d 32 33 30 34 38 |ory.....|= -23048|
|00000a80| 0d 7d 3b 0d 0d 65 6e 75 | 6d 20 7b 0d 09 42 59 54 |.};..enu|m {..BYT|
|00000a90| 45 53 5f 31 36 57 4f 52 | 44 09 09 09 09 3d 20 32 |ES_16WOR|D....= 2|
|00000aa0| 2c 09 09 09 09 09 09 09 | 2f 2a 20 62 79 74 65 73 |,.......|/* bytes|
|00000ab0| 20 70 65 72 20 3d 20 31 | 36 2c 20 62 69 74 20 69 | per = 1|6, bit i|
|00000ac0| 70 20 77 6f 72 64 20 2a | 2f 0d 09 42 59 54 45 53 |p word *|/..BYTES|
|00000ad0| 5f 33 32 57 4f 52 44 09 | 09 09 09 3d 20 34 2c 09 |_32WORD.|...= 4,.|
|00000ae0| 09 09 09 09 09 09 2f 2a | 20 62 79 74 65 73 20 70 |....../*| bytes p|
|00000af0| 65 72 20 3d 20 33 32 2c | 20 62 69 74 20 69 70 20 |er = 32,| bit ip |
|00000b00| 77 6f 72 64 20 2a 2f 0d | 09 42 59 54 45 53 5f 36 |word */.|.BYTES_6|
|00000b10| 34 57 4f 52 44 09 09 09 | 09 3d 20 38 09 09 09 09 |4WORD...|.= 8....|
|00000b20| 09 09 09 09 2f 2a 20 62 | 79 74 65 73 20 70 65 72 |..../* b|ytes per|
|00000b30| 20 3d 20 36 34 2c 20 62 | 69 74 20 69 70 20 77 6f | = 64, b|it ip wo|
|00000b40| 72 64 20 2a 2f 0d 7d 3b | 0d 0d 74 79 70 65 64 65 |rd */.};|..typede|
|00000b50| 66 20 75 6e 73 69 67 6e | 65 64 20 63 68 61 72 20 |f unsign|ed char |
|00000b60| 62 5f 38 3b 0d 0d 74 79 | 70 65 64 65 66 20 75 6e |b_8;..ty|pedef un|
|00000b70| 73 69 67 6e 65 64 20 73 | 68 6f 72 74 20 62 5f 31 |signed s|hort b_1|
|00000b80| 36 3b 0d 0d 74 79 70 65 | 64 65 66 20 75 6e 73 69 |6;..type|def unsi|
|00000b90| 67 6e 65 64 20 6c 6f 6e | 67 20 62 5f 33 32 3b 0d |gned lon|g b_32;.|
|00000ba0| 0d 74 79 70 65 64 65 66 | 20 62 5f 33 32 20 69 70 |.typedef| b_32 ip|
|00000bb0| 5f 61 64 64 72 3b 0d 0d | 73 74 72 75 63 74 20 69 |_addr;..|struct i|
|00000bc0| 70 5f 61 64 64 72 62 79 | 74 65 73 20 7b 0d 09 09 |p_addrby|tes {...|
|00000bd0| 75 6e 69 6f 6e 20 7b 0d | 09 09 09 62 5f 33 32 09 |union {.|...b_32.|
|00000be0| 09 09 09 09 09 09 61 64 | 64 72 3b 0d 09 09 09 63 |......ad|dr;....c|
|00000bf0| 68 61 72 09 09 09 09 09 | 09 09 62 79 74 65 5b 34 |har.....|..byte[4|
|00000c00| 5d 3b 0d 09 09 7d 09 09 | 09 09 09 09 09 61 3b 0d |];...}..|.....a;.|
|00000c10| 7d 3b 0d 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |};.typed|ef struc|
|00000c20| 74 20 69 70 5f 61 64 64 | 72 62 79 74 65 73 20 69 |t ip_add|rbytes i|
|00000c30| 70 5f 61 64 64 72 62 79 | 74 65 73 3b 0d 0d 73 74 |p_addrby|tes;..st|
|00000c40| 72 75 63 74 20 77 64 73 | 45 6e 74 72 79 20 7b 0d |ruct wds|Entry {.|
|00000c50| 09 75 6e 73 69 67 6e 65 | 64 20 73 68 6f 72 74 09 |.unsigne|d short.|
|00000c60| 09 09 09 09 6c 65 6e 67 | 74 68 3b 09 09 09 09 09 |....leng|th;.....|
|00000c70| 09 2f 2a 20 6c 65 6e 67 | 74 68 20 6f 66 20 62 75 |./* leng|th of bu|
|00000c80| 66 66 65 72 20 2a 2f 0d | 09 63 68 61 72 09 09 09 |ffer */.|.char...|
|00000c90| 09 09 09 09 2a 70 74 72 | 3b 09 09 09 09 09 09 2f |....*ptr|;....../|
|00000ca0| 2a 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 62 75 66 |* pointe|r to buf|
|00000cb0| 66 65 72 20 2a 2f 0d 7d | 3b 0d 74 79 70 65 64 65 |fer */.}|;.typede|
|00000cc0| 66 20 73 74 72 75 63 74 | 20 77 64 73 45 6e 74 72 |f struct| wdsEntr|
|00000cd0| 79 20 77 64 73 45 6e 74 | 72 79 3b 0d 0d 73 74 72 |y wdsEnt|ry;..str|
|00000ce0| 75 63 74 20 72 64 73 45 | 6e 74 72 79 20 7b 0d 09 |uct rdsE|ntry {..|
|00000cf0| 75 6e 73 69 67 6e 65 64 | 20 73 68 6f 72 74 09 09 |unsigned| short..|
|00000d00| 09 09 09 6c 65 6e 67 74 | 68 3b 09 09 09 09 09 09 |...lengt|h;......|
|00000d10| 2f 2a 20 6c 65 6e 67 74 | 68 20 6f 66 20 62 75 66 |/* lengt|h of buf|
|00000d20| 66 65 72 20 2a 2f 0d 09 | 63 68 61 72 09 09 09 09 |fer */..|char....|
|00000d30| 09 09 09 2a 70 74 72 3b | 09 09 09 09 09 09 2f 2a |...*ptr;|....../*|
|00000d40| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 62 75 66 66 | pointer| to buff|
|00000d50| 65 72 20 2a 2f 0d 7d 3b | 0d 74 79 70 65 64 65 66 |er */.};|.typedef|
|00000d60| 20 73 74 72 75 63 74 20 | 72 64 73 45 6e 74 72 79 | struct |rdsEntry|
|00000d70| 20 72 64 73 45 6e 74 72 | 79 3b 0d 0d 74 79 70 65 | rdsEntr|y;..type|
|00000d80| 64 65 66 20 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e |def unsi|gned lon|
|00000d90| 67 20 42 75 66 66 65 72 | 50 74 72 3b 0d 0d 74 79 |g Buffer|Ptr;..ty|
|00000da0| 70 65 64 65 66 20 75 6e | 73 69 67 6e 65 64 20 6c |pedef un|signed l|
|00000db0| 6f 6e 67 20 53 74 72 65 | 61 6d 50 74 72 3b 0d 0d |ong Stre|amPtr;..|
|00000dc0| 0d 65 6e 75 6d 20 7b 0d | 09 6e 65 74 55 6e 72 65 |.enum {.|.netUnre|
|00000dd0| 61 63 68 09 09 09 09 09 | 3d 20 30 2c 0d 09 68 6f |ach.....|= 0,..ho|
|00000de0| 73 74 55 6e 72 65 61 63 | 68 09 09 09 09 09 3d 20 |stUnreac|h.....= |
|00000df0| 31 2c 0d 09 70 72 6f 74 | 6f 63 6f 6c 55 6e 72 65 |1,..prot|ocolUnre|
|00000e00| 61 63 68 09 09 09 09 3d | 20 32 2c 0d 09 70 6f 72 |ach....=| 2,..por|
|00000e10| 74 55 6e 72 65 61 63 68 | 09 09 09 09 09 3d 20 33 |tUnreach|.....= 3|
|00000e20| 2c 0d 09 66 72 61 67 52 | 65 71 64 09 09 09 09 09 |,..fragR|eqd.....|
|00000e30| 3d 20 34 2c 0d 09 73 6f | 75 72 63 65 52 6f 75 74 |= 4,..so|urceRout|
|00000e40| 65 46 61 69 6c 65 64 09 | 09 09 3d 20 35 2c 0d 09 |eFailed.|..= 5,..|
|00000e50| 74 69 6d 65 45 78 63 65 | 65 64 65 64 09 09 09 09 |timeExce|eded....|
|00000e60| 3d 20 36 2c 0d 09 70 61 | 72 6d 50 72 6f 62 6c 65 |= 6,..pa|rmProble|
|00000e70| 6d 09 09 09 09 09 3d 20 | 37 2c 0d 09 6d 69 73 73 |m.....= |7,..miss|
|00000e80| 69 6e 67 4f 70 74 69 6f | 6e 09 09 09 09 3d 20 38 |ingOptio|n....= 8|
|00000e90| 0d 7d 3b 0d 0d 74 79 70 | 65 64 65 66 20 75 6e 73 |.};..typ|edef uns|
|00000ea0| 69 67 6e 65 64 20 73 68 | 6f 72 74 20 49 43 4d 50 |igned sh|ort ICMP|
|00000eb0| 4d 73 67 54 79 70 65 3b | 0d 0d 74 79 70 65 64 65 |MsgType;|..typede|
|00000ec0| 66 20 62 5f 31 36 20 69 | 70 5f 70 6f 72 74 3b 0d |f b_16 i|p_port;.|
|00000ed0| 0d 73 74 72 75 63 74 20 | 49 43 4d 50 52 65 70 6f |.struct |ICMPRepo|
|00000ee0| 72 74 20 7b 0d 09 53 74 | 72 65 61 6d 50 74 72 09 |rt {..St|reamPtr.|
|00000ef0| 09 09 09 09 09 73 74 72 | 65 61 6d 50 74 72 3b 0d |.....str|eamPtr;.|
|00000f00| 09 69 70 5f 61 64 64 72 | 09 09 09 09 09 09 09 6c |.ip_addr|.......l|
|00000f10| 6f 63 61 6c 48 6f 73 74 | 3b 0d 09 69 70 5f 70 6f |ocalHost|;..ip_po|
|00000f20| 72 74 09 09 09 09 09 09 | 09 6c 6f 63 61 6c 50 6f |rt......|.localPo|
|00000f30| 72 74 3b 0d 09 69 70 5f | 61 64 64 72 09 09 09 09 |rt;..ip_|addr....|
|00000f40| 09 09 09 72 65 6d 6f 74 | 65 48 6f 73 74 3b 0d 09 |...remot|eHost;..|
|00000f50| 69 70 5f 70 6f 72 74 09 | 09 09 09 09 09 09 72 65 |ip_port.|......re|
|00000f60| 6d 6f 74 65 50 6f 72 74 | 3b 0d 09 73 68 6f 72 74 |motePort|;..short|
|00000f70| 09 09 09 09 09 09 09 72 | 65 70 6f 72 74 54 79 70 |.......r|eportTyp|
|00000f80| 65 3b 0d 09 75 6e 73 69 | 67 6e 65 64 20 73 68 6f |e;..unsi|gned sho|
|00000f90| 72 74 09 09 09 09 09 6f | 70 74 69 6f 6e 61 6c 41 |rt.....o|ptionalA|
|00000fa0| 64 64 6c 49 6e 66 6f 3b | 0d 09 75 6e 73 69 67 6e |ddlInfo;|..unsign|
|00000fb0| 65 64 20 6c 6f 6e 67 09 | 09 09 09 09 6f 70 74 69 |ed long.|....opti|
|00000fc0| 6f 6e 61 6c 41 64 64 6c | 49 6e 66 6f 50 74 72 3b |onalAddl|InfoPtr;|
|00000fd0| 0d 7d 3b 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |.};.type|def stru|
|00000fe0| 63 74 20 49 43 4d 50 52 | 65 70 6f 72 74 20 49 43 |ct ICMPR|eport IC|
|00000ff0| 4d 50 52 65 70 6f 72 74 | 3b 0d 0d 74 79 70 65 64 |MPReport|;..typed|
|00001000| 65 66 20 4f 53 45 72 72 | 20 28 2a 4f 53 45 72 72 |ef OSErr| (*OSErr|
|00001010| 50 72 6f 63 50 74 72 29 | 28 29 3b 0d 0d 23 69 66 |ProcPtr)|();..#if|
|00001020| 20 47 45 4e 45 52 41 54 | 49 4e 47 43 46 4d 0d 74 | GENERAT|INGCFM.t|
|00001030| 79 70 65 64 65 66 20 55 | 6e 69 76 65 72 73 61 6c |ypedef U|niversal|
|00001040| 50 72 6f 63 50 74 72 20 | 4f 53 45 72 72 55 50 50 |ProcPtr |OSErrUPP|
|00001050| 3b 0d 23 65 6c 73 65 0d | 74 79 70 65 64 65 66 20 |;.#else.|typedef |
|00001060| 4f 53 45 72 72 50 72 6f | 63 50 74 72 20 4f 53 45 |OSErrPro|cPtr OSE|
|00001070| 72 72 55 50 50 3b 0d 23 | 65 6e 64 69 66 0d 0d 65 |rrUPP;.#|endif..e|
|00001080| 6e 75 6d 20 7b 0d 09 75 | 70 70 4f 53 45 72 72 50 |num {..u|ppOSErrP|
|00001090| 72 6f 63 49 6e 66 6f 20 | 3d 20 6b 43 53 74 61 63 |rocInfo |= kCStac|
|000010a0| 6b 42 61 73 65 64 0d 09 | 09 20 7c 20 52 45 53 55 |kBased..|. | RESU|
|000010b0| 4c 54 5f 53 49 5a 45 28 | 53 49 5a 45 5f 43 4f 44 |LT_SIZE(|SIZE_COD|
|000010c0| 45 28 73 69 7a 65 6f 66 | 28 4f 53 45 72 72 29 29 |E(sizeof|(OSErr))|
|000010d0| 29 0d 7d 3b 0d 0d 23 69 | 66 20 47 45 4e 45 52 41 |).};..#i|f GENERA|
|000010e0| 54 49 4e 47 43 46 4d 0d | 23 64 65 66 69 6e 65 20 |TINGCFM.|#define |
|000010f0| 4e 65 77 4f 53 45 72 72 | 50 72 6f 63 28 75 73 65 |NewOSErr|Proc(use|
|00001100| 72 52 6f 75 74 69 6e 65 | 29 09 09 5c 0d 09 09 28 |rRoutine|)..\...(|
|00001110| 4f 53 45 72 72 55 50 50 | 29 20 4e 65 77 52 6f 75 |OSErrUPP|) NewRou|
|00001120| 74 69 6e 65 44 65 73 63 | 72 69 70 74 6f 72 28 28 |tineDesc|riptor((|
|00001130| 50 72 6f 63 50 74 72 29 | 28 75 73 65 72 52 6f 75 |ProcPtr)|(userRou|
|00001140| 74 69 6e 65 29 2c 20 75 | 70 70 4f 53 45 72 72 50 |tine), u|ppOSErrP|
|00001150| 72 6f 63 49 6e 66 6f 2c | 20 47 65 74 43 75 72 72 |rocInfo,| GetCurr|
|00001160| 65 6e 74 41 72 63 68 69 | 74 65 63 74 75 72 65 28 |entArchi|tecture(|
|00001170| 29 29 0d 23 65 6c 73 65 | 0d 23 64 65 66 69 6e 65 |)).#else|.#define|
|00001180| 20 4e 65 77 4f 53 45 72 | 72 50 72 6f 63 28 75 73 | NewOSEr|rProc(us|
|00001190| 65 72 52 6f 75 74 69 6e | 65 29 09 09 5c 0d 09 09 |erRoutin|e)..\...|
|000011a0| 28 28 4f 53 45 72 72 55 | 50 50 29 20 28 75 73 65 |((OSErrU|PP) (use|
|000011b0| 72 52 6f 75 74 69 6e 65 | 29 29 0d 23 65 6e 64 69 |rRoutine|)).#endi|
|000011c0| 66 0d 0d 23 69 66 20 47 | 45 4e 45 52 41 54 49 4e |f..#if G|ENERATIN|
|000011d0| 47 43 46 4d 0d 23 64 65 | 66 69 6e 65 20 43 61 6c |GCFM.#de|fine Cal|
|000011e0| 6c 4f 53 45 72 72 50 72 | 6f 63 28 75 73 65 72 52 |lOSErrPr|oc(userR|
|000011f0| 6f 75 74 69 6e 65 29 09 | 09 5c 0d 09 09 43 61 6c |outine).|.\...Cal|
|00001200| 6c 55 6e 69 76 65 72 73 | 61 6c 50 72 6f 63 28 28 |lUnivers|alProc((|
|00001210| 55 6e 69 76 65 72 73 61 | 6c 50 72 6f 63 50 74 72 |Universa|lProcPtr|
|00001220| 29 28 75 73 65 72 52 6f | 75 74 69 6e 65 29 2c 20 |)(userRo|utine), |
|00001230| 75 70 70 4f 53 45 72 72 | 50 72 6f 63 49 6e 66 6f |uppOSErr|ProcInfo|
|00001240| 29 0d 23 65 6c 73 65 0d | 23 64 65 66 69 6e 65 20 |).#else.|#define |
|00001250| 43 61 6c 6c 4f 53 45 72 | 72 50 72 6f 63 28 75 73 |CallOSEr|rProc(us|
|00001260| 65 72 52 6f 75 74 69 6e | 65 29 09 09 5c 0d 09 09 |erRoutin|e)..\...|
|00001270| 28 2a 28 75 73 65 72 52 | 6f 75 74 69 6e 65 29 29 |(*(userR|outine))|
|00001280| 28 29 0d 23 65 6e 64 69 | 66 0d 0d 74 79 70 65 64 |().#endi|f..typed|
|00001290| 65 66 20 50 74 72 20 28 | 2a 50 74 72 50 72 6f 63 |ef Ptr (|*PtrProc|
|000012a0| 50 74 72 29 28 29 3b 0d | 0d 23 69 66 20 47 45 4e |Ptr)();.|.#if GEN|
|000012b0| 45 52 41 54 49 4e 47 43 | 46 4d 0d 74 79 70 65 64 |ERATINGC|FM.typed|
|000012c0| 65 66 20 55 6e 69 76 65 | 72 73 61 6c 50 72 6f 63 |ef Unive|rsalProc|
|000012d0| 50 74 72 20 50 74 72 55 | 50 50 3b 0d 23 65 6c 73 |Ptr PtrU|PP;.#els|
|000012e0| 65 0d 74 79 70 65 64 65 | 66 20 50 74 72 50 72 6f |e.typede|f PtrPro|
|000012f0| 63 50 74 72 20 50 74 72 | 55 50 50 3b 0d 23 65 6e |cPtr Ptr|UPP;.#en|
|00001300| 64 69 66 0d 0d 65 6e 75 | 6d 20 7b 0d 09 75 70 70 |dif..enu|m {..upp|
|00001310| 50 74 72 50 72 6f 63 49 | 6e 66 6f 20 3d 20 6b 43 |PtrProcI|nfo = kC|
|00001320| 53 74 61 63 6b 42 61 73 | 65 64 0d 09 09 20 7c 20 |StackBas|ed... | |
|00001330| 52 45 53 55 4c 54 5f 53 | 49 5a 45 28 53 49 5a 45 |RESULT_S|IZE(SIZE|
|00001340| 5f 43 4f 44 45 28 73 69 | 7a 65 6f 66 28 50 74 72 |_CODE(si|zeof(Ptr|
|00001350| 29 29 29 0d 7d 3b 0d 0d | 23 69 66 20 47 45 4e 45 |))).};..|#if GENE|
|00001360| 52 41 54 49 4e 47 43 46 | 4d 0d 23 64 65 66 69 6e |RATINGCF|M.#defin|
|00001370| 65 20 4e 65 77 50 74 72 | 50 72 6f 63 28 75 73 65 |e NewPtr|Proc(use|
|00001380| 72 52 6f 75 74 69 6e 65 | 29 09 09 5c 0d 09 09 28 |rRoutine|)..\...(|
|00001390| 50 74 72 55 50 50 29 20 | 4e 65 77 52 6f 75 74 69 |PtrUPP) |NewRouti|
|000013a0| 6e 65 44 65 73 63 72 69 | 70 74 6f 72 28 28 50 72 |neDescri|ptor((Pr|
|000013b0| 6f 63 50 74 72 29 28 75 | 73 65 72 52 6f 75 74 69 |ocPtr)(u|serRouti|
|000013c0| 6e 65 29 2c 20 75 70 70 | 50 74 72 50 72 6f 63 49 |ne), upp|PtrProcI|
|000013d0| 6e 66 6f 2c 20 47 65 74 | 43 75 72 72 65 6e 74 41 |nfo, Get|CurrentA|
|000013e0| 72 63 68 69 74 65 63 74 | 75 72 65 28 29 29 0d 23 |rchitect|ure()).#|
|000013f0| 65 6c 73 65 0d 23 64 65 | 66 69 6e 65 20 4e 65 77 |else.#de|fine New|
|00001400| 50 74 72 50 72 6f 63 28 | 75 73 65 72 52 6f 75 74 |PtrProc(|userRout|
|00001410| 69 6e 65 29 09 09 5c 0d | 09 09 28 28 50 74 72 55 |ine)..\.|..((PtrU|
|00001420| 50 50 29 20 28 75 73 65 | 72 52 6f 75 74 69 6e 65 |PP) (use|rRoutine|
|00001430| 29 29 0d 23 65 6e 64 69 | 66 0d 0d 23 69 66 20 47 |)).#endi|f..#if G|
|00001440| 45 4e 45 52 41 54 49 4e | 47 43 46 4d 0d 23 64 65 |ENERATIN|GCFM.#de|
|00001450| 66 69 6e 65 20 43 61 6c | 6c 50 74 72 50 72 6f 63 |fine Cal|lPtrProc|
|00001460| 28 75 73 65 72 52 6f 75 | 74 69 6e 65 29 09 09 5c |(userRou|tine)..\|
|00001470| 0d 09 09 43 61 6c 6c 55 | 6e 69 76 65 72 73 61 6c |...CallU|niversal|
|00001480| 50 72 6f 63 28 28 55 6e | 69 76 65 72 73 61 6c 50 |Proc((Un|iversalP|
|00001490| 72 6f 63 50 74 72 29 28 | 75 73 65 72 52 6f 75 74 |rocPtr)(|userRout|
|000014a0| 69 6e 65 29 2c 20 75 70 | 70 50 74 72 50 72 6f 63 |ine), up|pPtrProc|
|000014b0| 49 6e 66 6f 29 0d 23 65 | 6c 73 65 0d 23 64 65 66 |Info).#e|lse.#def|
|000014c0| 69 6e 65 20 43 61 6c 6c | 50 74 72 50 72 6f 63 28 |ine Call|PtrProc(|
|000014d0| 75 73 65 72 52 6f 75 74 | 69 6e 65 29 09 09 5c 0d |userRout|ine)..\.|
|000014e0| 09 09 28 2a 28 75 73 65 | 72 52 6f 75 74 69 6e 65 |..(*(use|rRoutine|
|000014f0| 29 29 28 29 0d 23 65 6e | 64 69 66 0d 0d 74 79 70 |))().#en|dif..typ|
|00001500| 65 64 65 66 20 42 6f 6f | 6c 65 61 6e 20 28 2a 42 |edef Boo|lean (*B|
|00001510| 6f 6f 6c 65 61 6e 50 72 | 6f 63 50 74 72 29 28 29 |ooleanPr|ocPtr)()|
|00001520| 3b 0d 0d 23 69 66 20 47 | 45 4e 45 52 41 54 49 4e |;..#if G|ENERATIN|
|00001530| 47 43 46 4d 0d 74 79 70 | 65 64 65 66 20 55 6e 69 |GCFM.typ|edef Uni|
|00001540| 76 65 72 73 61 6c 50 72 | 6f 63 50 74 72 20 42 6f |versalPr|ocPtr Bo|
|00001550| 6f 6c 65 61 6e 55 50 50 | 3b 0d 23 65 6c 73 65 0d |oleanUPP|;.#else.|
|00001560| 74 79 70 65 64 65 66 20 | 42 6f 6f 6c 65 61 6e 50 |typedef |BooleanP|
|00001570| 72 6f 63 50 74 72 20 42 | 6f 6f 6c 65 61 6e 55 50 |rocPtr B|ooleanUP|
|00001580| 50 3b 0d 23 65 6e 64 69 | 66 0d 0d 65 6e 75 6d 20 |P;.#endi|f..enum |
|00001590| 7b 0d 09 75 70 70 42 6f | 6f 6c 65 61 6e 50 72 6f |{..uppBo|oleanPro|
|000015a0| 63 49 6e 66 6f 20 3d 20 | 6b 43 53 74 61 63 6b 42 |cInfo = |kCStackB|
|000015b0| 61 73 65 64 0d 09 09 20 | 7c 20 52 45 53 55 4c 54 |ased... || RESULT|
|000015c0| 5f 53 49 5a 45 28 53 49 | 5a 45 5f 43 4f 44 45 28 |_SIZE(SI|ZE_CODE(|
|000015d0| 73 69 7a 65 6f 66 28 42 | 6f 6f 6c 65 61 6e 29 29 |sizeof(B|oolean))|
|000015e0| 29 0d 7d 3b 0d 0d 23 69 | 66 20 47 45 4e 45 52 41 |).};..#i|f GENERA|
|000015f0| 54 49 4e 47 43 46 4d 0d | 23 64 65 66 69 6e 65 20 |TINGCFM.|#define |
|00001600| 4e 65 77 42 6f 6f 6c 65 | 61 6e 50 72 6f 63 28 75 |NewBoole|anProc(u|
|00001610| 73 65 72 52 6f 75 74 69 | 6e 65 29 09 09 5c 0d 09 |serRouti|ne)..\..|
|00001620| 09 28 42 6f 6f 6c 65 61 | 6e 55 50 50 29 20 4e 65 |.(Boolea|nUPP) Ne|
|00001630| 77 52 6f 75 74 69 6e 65 | 44 65 73 63 72 69 70 74 |wRoutine|Descript|
|00001640| 6f 72 28 28 50 72 6f 63 | 50 74 72 29 28 75 73 65 |or((Proc|Ptr)(use|
|00001650| 72 52 6f 75 74 69 6e 65 | 29 2c 20 75 70 70 42 6f |rRoutine|), uppBo|
|00001660| 6f 6c 65 61 6e 50 72 6f | 63 49 6e 66 6f 2c 20 47 |oleanPro|cInfo, G|
|00001670| 65 74 43 75 72 72 65 6e | 74 41 72 63 68 69 74 65 |etCurren|tArchite|
|00001680| 63 74 75 72 65 28 29 29 | 0d 23 65 6c 73 65 0d 23 |cture())|.#else.#|
|00001690| 64 65 66 69 6e 65 20 4e | 65 77 42 6f 6f 6c 65 61 |define N|ewBoolea|
|000016a0| 6e 50 72 6f 63 28 75 73 | 65 72 52 6f 75 74 69 6e |nProc(us|erRoutin|
|000016b0| 65 29 09 09 5c 0d 09 09 | 28 28 42 6f 6f 6c 65 61 |e)..\...|((Boolea|
|000016c0| 6e 55 50 50 29 20 28 75 | 73 65 72 52 6f 75 74 69 |nUPP) (u|serRouti|
|000016d0| 6e 65 29 29 0d 23 65 6e | 64 69 66 0d 0d 23 69 66 |ne)).#en|dif..#if|
|000016e0| 20 47 45 4e 45 52 41 54 | 49 4e 47 43 46 4d 0d 23 | GENERAT|INGCFM.#|
|000016f0| 64 65 66 69 6e 65 20 43 | 61 6c 6c 42 6f 6f 6c 65 |define C|allBoole|
|00001700| 61 6e 50 72 6f 63 28 75 | 73 65 72 52 6f 75 74 69 |anProc(u|serRouti|
|00001710| 6e 65 29 09 09 5c 0d 09 | 09 43 61 6c 6c 55 6e 69 |ne)..\..|.CallUni|
|00001720| 76 65 72 73 61 6c 50 72 | 6f 63 28 28 55 6e 69 76 |versalPr|oc((Univ|
|00001730| 65 72 73 61 6c 50 72 6f | 63 50 74 72 29 28 75 73 |ersalPro|cPtr)(us|
|00001740| 65 72 52 6f 75 74 69 6e | 65 29 2c 20 75 70 70 42 |erRoutin|e), uppB|
|00001750| 6f 6f 6c 65 61 6e 50 72 | 6f 63 49 6e 66 6f 29 0d |ooleanPr|ocInfo).|
|00001760| 23 65 6c 73 65 0d 23 64 | 65 66 69 6e 65 20 43 61 |#else.#d|efine Ca|
|00001770| 6c 6c 42 6f 6f 6c 65 61 | 6e 50 72 6f 63 28 75 73 |llBoolea|nProc(us|
|00001780| 65 72 52 6f 75 74 69 6e | 65 29 09 09 5c 0d 09 09 |erRoutin|e)..\...|
|00001790| 28 2a 28 75 73 65 72 52 | 6f 75 74 69 6e 65 29 29 |(*(userR|outine))|
|000017a0| 28 29 0d 23 65 6e 64 69 | 66 0d 0d 0d 65 6e 75 6d |().#endi|f...enum|
|000017b0| 20 7b 0d 09 4e 55 4d 5f | 41 4c 54 5f 41 44 44 52 | {..NUM_|ALT_ADDR|
|000017c0| 53 09 09 09 09 3d 20 34 | 0d 7d 3b 0d 0d 73 74 72 |S....= 4|.};..str|
|000017d0| 75 63 74 20 68 6f 73 74 | 49 6e 66 6f 20 7b 0d 09 |uct host|Info {..|
|000017e0| 6c 6f 6e 67 09 09 09 09 | 09 09 09 72 74 6e 43 6f |long....|...rtnCo|
|000017f0| 64 65 3b 0d 09 63 68 61 | 72 09 09 09 09 09 09 09 |de;..cha|r.......|
|00001800| 63 6e 61 6d 65 5b 32 35 | 35 5d 3b 0d 09 55 49 6e |cname[25|5];..UIn|
|00001810| 74 38 09 09 09 09 09 09 | 09 66 69 6c 6c 65 72 3b |t8......|.filler;|
|00001820| 09 09 09 09 09 09 2f 2a | 20 46 69 6c 6c 65 72 20 |....../*| Filler |
|00001830| 66 6f 72 20 70 72 6f 70 | 65 72 20 62 79 74 65 20 |for prop|er byte |
|00001840| 61 6c 69 67 6e 6d 65 6e | 74 09 20 2a 2f 0d 09 75 |alignmen|t. */..u|
|00001850| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 09 09 09 09 |nsigned |long....|
|00001860| 09 61 64 64 72 5b 4e 55 | 4d 5f 41 4c 54 5f 41 44 |.addr[NU|M_ALT_AD|
|00001870| 44 52 53 5d 3b 0d 7d 3b | 0d 74 79 70 65 64 65 66 |DRS];.};|.typedef|
|00001880| 20 73 74 72 75 63 74 20 | 68 6f 73 74 49 6e 66 6f | struct |hostInfo|
|00001890| 20 68 6f 73 74 49 6e 66 | 6f 3b 0d 0d 0d 65 6e 75 | hostInf|o;...enu|
|000018a0| 6d 20 7b 0d 09 41 09 09 | 09 09 09 09 09 3d 20 31 |m {..A..|.....= 1|
|000018b0| 2c 0d 09 4e 53 09 09 09 | 09 09 09 09 3d 20 32 2c |,..NS...|....= 2,|
|000018c0| 0d 09 43 4e 41 4d 45 09 | 09 09 09 09 09 3d 20 35 |..CNAME.|.....= 5|
|000018d0| 2c 0d 09 48 49 4e 46 4f | 09 09 09 09 09 09 3d 20 |,..HINFO|......= |
|000018e0| 31 33 2c 0d 09 4d 58 09 | 09 09 09 09 09 09 3d 20 |13,..MX.|......= |
|000018f0| 31 35 0d 7d 3b 0d 0d 74 | 79 70 65 64 65 66 20 75 |15.};..t|ypedef u|
|00001900| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 20 41 64 |nsigned |short Ad|
|00001910| 64 72 43 6c 61 73 73 65 | 73 3b 0d 0d 73 74 72 75 |drClasse|s;..stru|
|00001920| 63 74 20 48 49 6e 66 6f | 52 65 63 20 7b 0d 09 63 |ct HInfo|Rec {..c|
|00001930| 68 61 72 09 09 09 09 09 | 09 09 63 70 75 54 79 70 |har.....|..cpuTyp|
|00001940| 65 5b 33 30 5d 3b 0d 09 | 63 68 61 72 09 09 09 09 |e[30];..|char....|
|00001950| 09 09 09 6f 73 54 79 70 | 65 5b 33 30 5d 3b 0d 7d |...osTyp|e[30];.}|
|00001960| 3b 0d 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |;.typede|f struct|
|00001970| 20 48 49 6e 66 6f 52 65 | 63 20 48 49 6e 66 6f 52 | HInfoRe|c HInfoR|
|00001980| 65 63 3b 0d 0d 73 74 72 | 75 63 74 20 4d 58 52 65 |ec;..str|uct MXRe|
|00001990| 63 20 7b 0d 09 75 6e 73 | 69 67 6e 65 64 20 73 68 |c {..uns|igned sh|
|000019a0| 6f 72 74 09 09 09 09 09 | 70 72 65 66 65 72 65 6e |ort.....|preferen|
|000019b0| 63 65 3b 0d 09 63 68 61 | 72 09 09 09 09 09 09 09 |ce;..cha|r.......|
|000019c0| 65 78 63 68 61 6e 67 65 | 5b 32 35 35 5d 3b 0d 7d |exchange|[255];.}|
|000019d0| 3b 0d 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |;.typede|f struct|
|000019e0| 20 4d 58 52 65 63 20 4d | 58 52 65 63 3b 0d 0d 73 | MXRec M|XRec;..s|
|000019f0| 74 72 75 63 74 20 72 65 | 74 75 72 6e 52 65 63 20 |truct re|turnRec |
|00001a00| 7b 0d 09 6c 6f 6e 67 09 | 09 09 09 09 09 09 72 74 |{..long.|......rt|
|00001a10| 6e 43 6f 64 65 3b 0d 09 | 63 68 61 72 09 09 09 09 |nCode;..|char....|
|00001a20| 09 09 09 63 6e 61 6d 65 | 5b 32 35 35 5d 3b 0d 09 |...cname|[255];..|
|00001a30| 55 49 6e 74 38 09 09 09 | 09 09 09 09 66 69 6c 6c |UInt8...|....fill|
|00001a40| 65 72 3b 09 09 09 09 09 | 09 2f 2a 20 46 69 6c 6c |er;.....|./* Fill|
|00001a50| 65 72 20 66 6f 72 20 70 | 72 6f 70 65 72 20 62 79 |er for p|roper by|
|00001a60| 74 65 20 61 6c 69 67 6e | 6d 65 6e 74 09 20 2a 2f |te align|ment. */|
|00001a70| 0d 09 09 75 6e 69 6f 6e | 20 7b 0d 09 09 09 75 6e |...union| {....un|
|00001a80| 73 69 67 6e 65 64 20 6c | 6f 6e 67 09 09 09 09 09 |signed l|ong.....|
|00001a90| 61 64 64 72 5b 4e 55 4d | 5f 41 4c 54 5f 41 44 44 |addr[NUM|_ALT_ADD|
|00001aa0| 52 53 5d 3b 0d 09 09 09 | 73 74 72 75 63 74 20 48 |RS];....|struct H|
|00001ab0| 49 6e 66 6f 52 65 63 09 | 09 09 09 09 68 69 6e 66 |InfoRec.|....hinf|
|00001ac0| 6f 3b 0d 09 09 09 73 74 | 72 75 63 74 20 4d 58 52 |o;....st|ruct MXR|
|00001ad0| 65 63 09 09 09 09 09 6d | 78 3b 0d 09 09 7d 09 09 |ec.....m|x;...}..|
|00001ae0| 09 09 09 09 09 72 64 61 | 74 61 3b 0d 7d 3b 0d 73 |.....rda|ta;.};.s|
|00001af0| 74 72 75 63 74 20 63 61 | 63 68 65 45 6e 74 72 79 |truct ca|cheEntry|
|00001b00| 52 65 63 6f 72 64 20 7b | 0d 09 63 68 61 72 09 09 |Record {|..char..|
|00001b10| 09 09 09 09 09 2a 63 6e | 61 6d 65 3b 0d 09 75 6e |.....*cn|ame;..un|
|00001b20| 73 69 67 6e 65 64 20 73 | 68 6f 72 74 09 09 09 09 |signed s|hort....|
|00001b30| 09 63 74 79 70 65 3b 0d | 09 75 6e 73 69 67 6e 65 |.ctype;.|.unsigne|
|00001b40| 64 20 73 68 6f 72 74 09 | 09 09 09 09 63 61 63 68 |d short.|....cach|
|00001b50| 65 43 6c 61 73 73 3b 0d | 09 75 6e 73 69 67 6e 65 |eClass;.|.unsigne|
|00001b60| 64 20 6c 6f 6e 67 09 09 | 09 09 09 74 74 6c 3b 0d |d long..|...ttl;.|
|00001b70| 09 09 75 6e 69 6f 6e 20 | 7b 0d 09 09 09 63 68 61 |..union |{....cha|
|00001b80| 72 09 09 09 09 09 09 09 | 2a 6e 61 6d 65 3b 0d 09 |r.......|*name;..|
|00001b90| 09 09 69 70 5f 61 64 64 | 72 09 09 09 09 09 09 09 |..ip_add|r.......|
|00001ba0| 61 64 64 72 3b 0d 09 09 | 7d 09 09 09 09 09 09 09 |addr;...|}.......|
|00001bb0| 72 64 61 74 61 3b 0d 7d | 3b 0d 74 79 70 65 64 65 |rdata;.}|;.typede|
|00001bc0| 66 20 73 74 72 75 63 74 | 20 72 65 74 75 72 6e 52 |f struct| returnR|
|00001bd0| 65 63 20 72 65 74 75 72 | 6e 52 65 63 3b 0d 0d 74 |ec retur|nRec;..t|
|00001be0| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 63 61 |ypedef s|truct ca|
|00001bf0| 63 68 65 45 6e 74 72 79 | 52 65 63 6f 72 64 20 63 |cheEntry|Record c|
|00001c00| 61 63 68 65 45 6e 74 72 | 79 52 65 63 6f 72 64 3b |acheEntr|yRecord;|
|00001c10| 0d 0d 74 79 70 65 64 65 | 66 20 70 61 73 63 61 6c |..typede|f pascal|
|00001c20| 20 76 6f 69 64 20 28 2a | 45 6e 75 6d 52 65 73 75 | void (*|EnumResu|
|00001c30| 6c 74 50 72 6f 63 50 74 | 72 29 28 73 74 72 75 63 |ltProcPt|r)(struc|
|00001c40| 74 20 63 61 63 68 65 45 | 6e 74 72 79 52 65 63 6f |t cacheE|ntryReco|
|00001c50| 72 64 20 2a 63 61 63 68 | 65 45 6e 74 72 79 52 65 |rd *cach|eEntryRe|
|00001c60| 63 6f 72 64 50 74 72 2c | 20 63 68 61 72 20 2a 75 |cordPtr,| char *u|
|00001c70| 73 65 72 44 61 74 61 50 | 74 72 29 3b 0d 0d 23 69 |serDataP|tr);..#i|
|00001c80| 66 20 47 45 4e 45 52 41 | 54 49 4e 47 43 46 4d 0d |f GENERA|TINGCFM.|
|00001c90| 74 79 70 65 64 65 66 20 | 55 6e 69 76 65 72 73 61 |typedef |Universa|
|00001ca0| 6c 50 72 6f 63 50 74 72 | 20 45 6e 75 6d 52 65 73 |lProcPtr| EnumRes|
|00001cb0| 75 6c 74 55 50 50 3b 0d | 23 65 6c 73 65 0d 74 79 |ultUPP;.|#else.ty|
|00001cc0| 70 65 64 65 66 20 45 6e | 75 6d 52 65 73 75 6c 74 |pedef En|umResult|
|00001cd0| 50 72 6f 63 50 74 72 20 | 45 6e 75 6d 52 65 73 75 |ProcPtr |EnumResu|
|00001ce0| 6c 74 55 50 50 3b 0d 23 | 65 6e 64 69 66 0d 0d 65 |ltUPP;.#|endif..e|
|00001cf0| 6e 75 6d 20 7b 0d 09 75 | 70 70 45 6e 75 6d 52 65 |num {..u|ppEnumRe|
|00001d00| 73 75 6c 74 50 72 6f 63 | 49 6e 66 6f 20 3d 20 6b |sultProc|Info = k|
|00001d10| 50 61 73 63 61 6c 53 74 | 61 63 6b 42 61 73 65 64 |PascalSt|ackBased|
|00001d20| 0d 09 09 20 7c 20 53 54 | 41 43 4b 5f 52 4f 55 54 |... | ST|ACK_ROUT|
|00001d30| 49 4e 45 5f 50 41 52 41 | 4d 45 54 45 52 28 31 2c |INE_PARA|METER(1,|
|00001d40| 20 53 49 5a 45 5f 43 4f | 44 45 28 73 69 7a 65 6f | SIZE_CO|DE(sizeo|
|00001d50| 66 28 73 74 72 75 63 74 | 20 63 61 63 68 65 45 6e |f(struct| cacheEn|
|00001d60| 74 72 79 52 65 63 6f 72 | 64 2a 29 29 29 0d 09 09 |tryRecor|d*)))...|
|00001d70| 20 7c 20 53 54 41 43 4b | 5f 52 4f 55 54 49 4e 45 | | STACK|_ROUTINE|
|00001d80| 5f 50 41 52 41 4d 45 54 | 45 52 28 32 2c 20 53 49 |_PARAMET|ER(2, SI|
|00001d90| 5a 45 5f 43 4f 44 45 28 | 73 69 7a 65 6f 66 28 63 |ZE_CODE(|sizeof(c|
|00001da0| 68 61 72 2a 29 29 29 0d | 7d 3b 0d 0d 23 69 66 20 |har*))).|};..#if |
|00001db0| 47 45 4e 45 52 41 54 49 | 4e 47 43 46 4d 0d 23 64 |GENERATI|NGCFM.#d|
|00001dc0| 65 66 69 6e 65 20 4e 65 | 77 45 6e 75 6d 52 65 73 |efine Ne|wEnumRes|
|00001dd0| 75 6c 74 50 72 6f 63 28 | 75 73 65 72 52 6f 75 74 |ultProc(|userRout|
|00001de0| 69 6e 65 29 09 09 5c 0d | 09 09 28 45 6e 75 6d 52 |ine)..\.|..(EnumR|
|00001df0| 65 73 75 6c 74 55 50 50 | 29 20 4e 65 77 52 6f 75 |esultUPP|) NewRou|
|00001e00| 74 69 6e 65 44 65 73 63 | 72 69 70 74 6f 72 28 28 |tineDesc|riptor((|
|00001e10| 50 72 6f 63 50 74 72 29 | 28 75 73 65 72 52 6f 75 |ProcPtr)|(userRou|
|00001e20| 74 69 6e 65 29 2c 20 75 | 70 70 45 6e 75 6d 52 65 |tine), u|ppEnumRe|
|00001e30| 73 75 6c 74 50 72 6f 63 | 49 6e 66 6f 2c 20 47 65 |sultProc|Info, Ge|
|00001e40| 74 43 75 72 72 65 6e 74 | 41 72 63 68 69 74 65 63 |tCurrent|Architec|
|00001e50| 74 75 72 65 28 29 29 0d | 23 65 6c 73 65 0d 23 64 |ture()).|#else.#d|
|00001e60| 65 66 69 6e 65 20 4e 65 | 77 45 6e 75 6d 52 65 73 |efine Ne|wEnumRes|
|00001e70| 75 6c 74 50 72 6f 63 28 | 75 73 65 72 52 6f 75 74 |ultProc(|userRout|
|00001e80| 69 6e 65 29 09 09 5c 0d | 09 09 28 28 45 6e 75 6d |ine)..\.|..((Enum|
|00001e90| 52 65 73 75 6c 74 55 50 | 50 29 20 28 75 73 65 72 |ResultUP|P) (user|
|00001ea0| 52 6f 75 74 69 6e 65 29 | 29 0d 23 65 6e 64 69 66 |Routine)|).#endif|
|00001eb0| 0d 0d 23 69 66 20 47 45 | 4e 45 52 41 54 49 4e 47 |..#if GE|NERATING|
|00001ec0| 43 46 4d 0d 23 64 65 66 | 69 6e 65 20 43 61 6c 6c |CFM.#def|ine Call|
|00001ed0| 45 6e 75 6d 52 65 73 75 | 6c 74 50 72 6f 63 28 75 |EnumResu|ltProc(u|
|00001ee0| 73 65 72 52 6f 75 74 69 | 6e 65 2c 20 63 61 63 68 |serRouti|ne, cach|
|00001ef0| 65 45 6e 74 72 79 52 65 | 63 6f 72 64 50 74 72 2c |eEntryRe|cordPtr,|
|00001f00| 20 75 73 65 72 44 61 74 | 61 50 74 72 29 09 09 5c | userDat|aPtr)..\|
|00001f10| 0d 09 09 43 61 6c 6c 55 | 6e 69 76 65 72 73 61 6c |...CallU|niversal|
|00001f20| 50 72 6f 63 28 28 55 6e | 69 76 65 72 73 61 6c 50 |Proc((Un|iversalP|
|00001f30| 72 6f 63 50 74 72 29 28 | 75 73 65 72 52 6f 75 74 |rocPtr)(|userRout|
|00001f40| 69 6e 65 29 2c 20 75 70 | 70 45 6e 75 6d 52 65 73 |ine), up|pEnumRes|
|00001f50| 75 6c 74 50 72 6f 63 49 | 6e 66 6f 2c 20 28 63 61 |ultProcI|nfo, (ca|
|00001f60| 63 68 65 45 6e 74 72 79 | 52 65 63 6f 72 64 50 74 |cheEntry|RecordPt|
|00001f70| 72 29 2c 20 28 75 73 65 | 72 44 61 74 61 50 74 72 |r), (use|rDataPtr|
|00001f80| 29 29 0d 23 65 6c 73 65 | 0d 23 64 65 66 69 6e 65 |)).#else|.#define|
|00001f90| 20 43 61 6c 6c 45 6e 75 | 6d 52 65 73 75 6c 74 50 | CallEnu|mResultP|
|00001fa0| 72 6f 63 28 75 73 65 72 | 52 6f 75 74 69 6e 65 2c |roc(user|Routine,|
|00001fb0| 20 63 61 63 68 65 45 6e | 74 72 79 52 65 63 6f 72 | cacheEn|tryRecor|
|00001fc0| 64 50 74 72 2c 20 75 73 | 65 72 44 61 74 61 50 74 |dPtr, us|erDataPt|
|00001fd0| 72 29 09 09 5c 0d 09 09 | 28 2a 28 75 73 65 72 52 |r)..\...|(*(userR|
|00001fe0| 6f 75 74 69 6e 65 29 29 | 28 28 63 61 63 68 65 45 |outine))|((cacheE|
|00001ff0| 6e 74 72 79 52 65 63 6f | 72 64 50 74 72 29 2c 20 |ntryReco|rdPtr), |
|00002000| 28 75 73 65 72 44 61 74 | 61 50 74 72 29 29 0d 23 |(userDat|aPtr)).#|
|00002010| 65 6e 64 69 66 0d 0d 74 | 79 70 65 64 65 66 20 70 |endif..t|ypedef p|
|00002020| 61 73 63 61 6c 20 76 6f | 69 64 20 28 2a 52 65 73 |ascal vo|id (*Res|
|00002030| 75 6c 74 50 72 6f 63 50 | 74 72 29 28 73 74 72 75 |ultProcP|tr)(stru|
|00002040| 63 74 20 68 6f 73 74 49 | 6e 66 6f 20 2a 68 6f 73 |ct hostI|nfo *hos|
|00002050| 74 49 6e 66 6f 50 74 72 | 2c 20 63 68 61 72 20 2a |tInfoPtr|, char *|
|00002060| 75 73 65 72 44 61 74 61 | 50 74 72 29 3b 0d 0d 23 |userData|Ptr);..#|
|00002070| 69 66 20 47 45 4e 45 52 | 41 54 49 4e 47 43 46 4d |if GENER|ATINGCFM|
|00002080| 0d 74 79 70 65 64 65 66 | 20 55 6e 69 76 65 72 73 |.typedef| Univers|
|00002090| 61 6c 50 72 6f 63 50 74 | 72 20 52 65 73 75 6c 74 |alProcPt|r Result|
|000020a0| 55 50 50 3b 0d 23 65 6c | 73 65 0d 74 79 70 65 64 |UPP;.#el|se.typed|
|000020b0| 65 66 20 52 65 73 75 6c | 74 50 72 6f 63 50 74 72 |ef Resul|tProcPtr|
|000020c0| 20 52 65 73 75 6c 74 55 | 50 50 3b 0d 23 65 6e 64 | ResultU|PP;.#end|
|000020d0| 69 66 0d 0d 65 6e 75 6d | 20 7b 0d 09 75 70 70 52 |if..enum| {..uppR|
|000020e0| 65 73 75 6c 74 50 72 6f | 63 49 6e 66 6f 20 3d 20 |esultPro|cInfo = |
|000020f0| 6b 50 61 73 63 61 6c 53 | 74 61 63 6b 42 61 73 65 |kPascalS|tackBase|
|00002100| 64 0d 09 09 20 7c 20 53 | 54 41 43 4b 5f 52 4f 55 |d... | S|TACK_ROU|
|00002110| 54 49 4e 45 5f 50 41 52 | 41 4d 45 54 45 52 28 31 |TINE_PAR|AMETER(1|
|00002120| 2c 20 53 49 5a 45 5f 43 | 4f 44 45 28 73 69 7a 65 |, SIZE_C|ODE(size|
|00002130| 6f 66 28 73 74 72 75 63 | 74 20 68 6f 73 74 49 6e |of(struc|t hostIn|
|00002140| 66 6f 2a 29 29 29 0d 09 | 09 20 7c 20 53 54 41 43 |fo*)))..|. | STAC|
|00002150| 4b 5f 52 4f 55 54 49 4e | 45 5f 50 41 52 41 4d 45 |K_ROUTIN|E_PARAME|
|00002160| 54 45 52 28 32 2c 20 53 | 49 5a 45 5f 43 4f 44 45 |TER(2, S|IZE_CODE|
|00002170| 28 73 69 7a 65 6f 66 28 | 63 68 61 72 2a 29 29 29 |(sizeof(|char*)))|
|00002180| 0d 7d 3b 0d 0d 23 69 66 | 20 47 45 4e 45 52 41 54 |.};..#if| GENERAT|
|00002190| 49 4e 47 43 46 4d 0d 23 | 64 65 66 69 6e 65 20 4e |INGCFM.#|define N|
|000021a0| 65 77 52 65 73 75 6c 74 | 50 72 6f 63 28 75 73 65 |ewResult|Proc(use|
|000021b0| 72 52 6f 75 74 69 6e 65 | 29 09 09 5c 0d 09 09 28 |rRoutine|)..\...(|
|000021c0| 52 65 73 75 6c 74 55 50 | 50 29 20 4e 65 77 52 6f |ResultUP|P) NewRo|
|000021d0| 75 74 69 6e 65 44 65 73 | 63 72 69 70 74 6f 72 28 |utineDes|criptor(|
|000021e0| 28 50 72 6f 63 50 74 72 | 29 28 75 73 65 72 52 6f |(ProcPtr|)(userRo|
|000021f0| 75 74 69 6e 65 29 2c 20 | 75 70 70 52 65 73 75 6c |utine), |uppResul|
|00002200| 74 50 72 6f 63 49 6e 66 | 6f 2c 20 47 65 74 43 75 |tProcInf|o, GetCu|
|00002210| 72 72 65 6e 74 41 72 63 | 68 69 74 65 63 74 75 72 |rrentArc|hitectur|
|00002220| 65 28 29 29 0d 23 65 6c | 73 65 0d 23 64 65 66 69 |e()).#el|se.#defi|
|00002230| 6e 65 20 4e 65 77 52 65 | 73 75 6c 74 50 72 6f 63 |ne NewRe|sultProc|
|00002240| 28 75 73 65 72 52 6f 75 | 74 69 6e 65 29 09 09 5c |(userRou|tine)..\|
|00002250| 0d 09 09 28 28 52 65 73 | 75 6c 74 55 50 50 29 20 |...((Res|ultUPP) |
|00002260| 28 75 73 65 72 52 6f 75 | 74 69 6e 65 29 29 0d 23 |(userRou|tine)).#|
|00002270| 65 6e 64 69 66 0d 0d 23 | 69 66 20 47 45 4e 45 52 |endif..#|if GENER|
|00002280| 41 54 49 4e 47 43 46 4d | 0d 23 64 65 66 69 6e 65 |ATINGCFM|.#define|
|00002290| 20 43 61 6c 6c 52 65 73 | 75 6c 74 50 72 6f 63 28 | CallRes|ultProc(|
|000022a0| 75 73 65 72 52 6f 75 74 | 69 6e 65 2c 20 68 6f 73 |userRout|ine, hos|
|000022b0| 74 49 6e 66 6f 50 74 72 | 2c 20 75 73 65 72 44 61 |tInfoPtr|, userDa|
|000022c0| 74 61 50 74 72 29 09 09 | 5c 0d 09 09 43 61 6c 6c |taPtr)..|\...Call|
|000022d0| 55 6e 69 76 65 72 73 61 | 6c 50 72 6f 63 28 28 55 |Universa|lProc((U|
|000022e0| 6e 69 76 65 72 73 61 6c | 50 72 6f 63 50 74 72 29 |niversal|ProcPtr)|
|000022f0| 28 75 73 65 72 52 6f 75 | 74 69 6e 65 29 2c 20 75 |(userRou|tine), u|
|00002300| 70 70 52 65 73 75 6c 74 | 50 72 6f 63 49 6e 66 6f |ppResult|ProcInfo|
|00002310| 2c 20 28 68 6f 73 74 49 | 6e 66 6f 50 74 72 29 2c |, (hostI|nfoPtr),|
|00002320| 20 28 75 73 65 72 44 61 | 74 61 50 74 72 29 29 0d | (userDa|taPtr)).|
|00002330| 23 65 6c 73 65 0d 23 64 | 65 66 69 6e 65 20 43 61 |#else.#d|efine Ca|
|00002340| 6c 6c 52 65 73 75 6c 74 | 50 72 6f 63 28 75 73 65 |llResult|Proc(use|
|00002350| 72 52 6f 75 74 69 6e 65 | 2c 20 68 6f 73 74 49 6e |rRoutine|, hostIn|
|00002360| 66 6f 50 74 72 2c 20 75 | 73 65 72 44 61 74 61 50 |foPtr, u|serDataP|
|00002370| 74 72 29 09 09 5c 0d 09 | 09 28 2a 28 75 73 65 72 |tr)..\..|.(*(user|
|00002380| 52 6f 75 74 69 6e 65 29 | 29 28 28 68 6f 73 74 49 |Routine)|)((hostI|
|00002390| 6e 66 6f 50 74 72 29 2c | 20 28 75 73 65 72 44 61 |nfoPtr),| (userDa|
|000023a0| 74 61 50 74 72 29 29 0d | 23 65 6e 64 69 66 0d 0d |taPtr)).|#endif..|
|000023b0| 74 79 70 65 64 65 66 20 | 70 61 73 63 61 6c 20 76 |typedef |pascal v|
|000023c0| 6f 69 64 20 28 2a 52 65 | 73 75 6c 74 32 50 72 6f |oid (*Re|sult2Pro|
|000023d0| 63 50 74 72 29 28 73 74 | 72 75 63 74 20 72 65 74 |cPtr)(st|ruct ret|
|000023e0| 75 72 6e 52 65 63 20 2a | 72 65 74 75 72 6e 52 65 |urnRec *|returnRe|
|000023f0| 63 50 74 72 2c 20 63 68 | 61 72 20 2a 75 73 65 72 |cPtr, ch|ar *user|
|00002400| 44 61 74 61 50 74 72 29 | 3b 0d 0d 23 69 66 20 47 |DataPtr)|;..#if G|
|00002410| 45 4e 45 52 41 54 49 4e | 47 43 46 4d 0d 74 79 70 |ENERATIN|GCFM.typ|
|00002420| 65 64 65 66 20 55 6e 69 | 76 65 72 73 61 6c 50 72 |edef Uni|versalPr|
|00002430| 6f 63 50 74 72 20 52 65 | 73 75 6c 74 32 55 50 50 |ocPtr Re|sult2UPP|
|00002440| 3b 0d 23 65 6c 73 65 0d | 74 79 70 65 64 65 66 20 |;.#else.|typedef |
|00002450| 52 65 73 75 6c 74 32 50 | 72 6f 63 50 74 72 20 52 |Result2P|rocPtr R|
|00002460| 65 73 75 6c 74 32 55 50 | 50 3b 0d 23 65 6e 64 69 |esult2UP|P;.#endi|
|00002470| 66 0d 0d 65 6e 75 6d 20 | 7b 0d 09 75 70 70 52 65 |f..enum |{..uppRe|
|00002480| 73 75 6c 74 32 50 72 6f | 63 49 6e 66 6f 20 3d 20 |sult2Pro|cInfo = |
|00002490| 6b 50 61 73 63 61 6c 53 | 74 61 63 6b 42 61 73 65 |kPascalS|tackBase|
|000024a0| 64 0d 09 09 20 7c 20 53 | 54 41 43 4b 5f 52 4f 55 |d... | S|TACK_ROU|
|000024b0| 54 49 4e 45 5f 50 41 52 | 41 4d 45 54 45 52 28 31 |TINE_PAR|AMETER(1|
|000024c0| 2c 20 53 49 5a 45 5f 43 | 4f 44 45 28 73 69 7a 65 |, SIZE_C|ODE(size|
|000024d0| 6f 66 28 73 74 72 75 63 | 74 20 72 65 74 75 72 6e |of(struc|t return|
|000024e0| 52 65 63 2a 29 29 29 0d | 09 09 20 7c 20 53 54 41 |Rec*))).|.. | STA|
|000024f0| 43 4b 5f 52 4f 55 54 49 | 4e 45 5f 50 41 52 41 4d |CK_ROUTI|NE_PARAM|
|00002500| 45 54 45 52 28 32 2c 20 | 53 49 5a 45 5f 43 4f 44 |ETER(2, |SIZE_COD|
|00002510| 45 28 73 69 7a 65 6f 66 | 28 63 68 61 72 2a 29 29 |E(sizeof|(char*))|
|00002520| 29 0d 7d 3b 0d 0d 23 69 | 66 20 47 45 4e 45 52 41 |).};..#i|f GENERA|
|00002530| 54 49 4e 47 43 46 4d 0d | 23 64 65 66 69 6e 65 20 |TINGCFM.|#define |
|00002540| 4e 65 77 52 65 73 75 6c | 74 32 50 72 6f 63 28 75 |NewResul|t2Proc(u|
|00002550| 73 65 72 52 6f 75 74 69 | 6e 65 29 09 09 5c 0d 09 |serRouti|ne)..\..|
|00002560| 09 28 52 65 73 75 6c 74 | 32 55 50 50 29 20 4e 65 |.(Result|2UPP) Ne|
|00002570| 77 52 6f 75 74 69 6e 65 | 44 65 73 63 72 69 70 74 |wRoutine|Descript|
|00002580| 6f 72 28 28 50 72 6f 63 | 50 74 72 29 28 75 73 65 |or((Proc|Ptr)(use|
|00002590| 72 52 6f 75 74 69 6e 65 | 29 2c 20 75 70 70 52 65 |rRoutine|), uppRe|
|000025a0| 73 75 6c 74 32 50 72 6f | 63 49 6e 66 6f 2c 20 47 |sult2Pro|cInfo, G|
|000025b0| 65 74 43 75 72 72 65 6e | 74 41 72 63 68 69 74 65 |etCurren|tArchite|
|000025c0| 63 74 75 72 65 28 29 29 | 0d 23 65 6c 73 65 0d 23 |cture())|.#else.#|
|000025d0| 64 65 66 69 6e 65 20 4e | 65 77 52 65 73 75 6c 74 |define N|ewResult|
|000025e0| 32 50 72 6f 63 28 75 73 | 65 72 52 6f 75 74 69 6e |2Proc(us|erRoutin|
|000025f0| 65 29 09 09 5c 0d 09 09 | 28 28 52 65 73 75 6c 74 |e)..\...|((Result|
|00002600| 32 55 50 50 29 20 28 75 | 73 65 72 52 6f 75 74 69 |2UPP) (u|serRouti|
|00002610| 6e 65 29 29 0d 23 65 6e | 64 69 66 0d 0d 23 69 66 |ne)).#en|dif..#if|
|00002620| 20 47 45 4e 45 52 41 54 | 49 4e 47 43 46 4d 0d 23 | GENERAT|INGCFM.#|
|00002630| 64 65 66 69 6e 65 20 43 | 61 6c 6c 52 65 73 75 6c |define C|allResul|
|00002640| 74 32 50 72 6f 63 28 75 | 73 65 72 52 6f 75 74 69 |t2Proc(u|serRouti|
|00002650| 6e 65 2c 20 72 65 74 75 | 72 6e 52 65 63 50 74 72 |ne, retu|rnRecPtr|
|00002660| 2c 20 75 73 65 72 44 61 | 74 61 50 74 72 29 09 09 |, userDa|taPtr)..|
|00002670| 5c 0d 09 09 43 61 6c 6c | 55 6e 69 76 65 72 73 61 |\...Call|Universa|
|00002680| 6c 50 72 6f 63 28 28 55 | 6e 69 76 65 72 73 61 6c |lProc((U|niversal|
|00002690| 50 72 6f 63 50 74 72 29 | 28 75 73 65 72 52 6f 75 |ProcPtr)|(userRou|
|000026a0| 74 69 6e 65 29 2c 20 75 | 70 70 52 65 73 75 6c 74 |tine), u|ppResult|
|000026b0| 32 50 72 6f 63 49 6e 66 | 6f 2c 20 28 72 65 74 75 |2ProcInf|o, (retu|
|000026c0| 72 6e 52 65 63 50 74 72 | 29 2c 20 28 75 73 65 72 |rnRecPtr|), (user|
|000026d0| 44 61 74 61 50 74 72 29 | 29 0d 23 65 6c 73 65 0d |DataPtr)|).#else.|
|000026e0| 23 64 65 66 69 6e 65 20 | 43 61 6c 6c 52 65 73 75 |#define |CallResu|
|000026f0| 6c 74 32 50 72 6f 63 28 | 75 73 65 72 52 6f 75 74 |lt2Proc(|userRout|
|00002700| 69 6e 65 2c 20 72 65 74 | 75 72 6e 52 65 63 50 74 |ine, ret|urnRecPt|
|00002710| 72 2c 20 75 73 65 72 44 | 61 74 61 50 74 72 29 09 |r, userD|ataPtr).|
|00002720| 09 5c 0d 09 09 28 2a 28 | 75 73 65 72 52 6f 75 74 |.\...(*(|userRout|
|00002730| 69 6e 65 29 29 28 28 72 | 65 74 75 72 6e 52 65 63 |ine))((r|eturnRec|
|00002740| 50 74 72 29 2c 20 28 75 | 73 65 72 44 61 74 61 50 |Ptr), (u|serDataP|
|00002750| 74 72 29 29 0d 23 65 6e | 64 69 66 0d 0d 23 69 66 |tr)).#en|dif..#if|
|00002760| 20 4f 4c 44 52 4f 55 54 | 49 4e 45 4e 41 4d 45 53 | OLDROUT|INENAMES|
|00002770| 09 09 09 09 09 2f 2f 20 | a5 a5 20 45 53 20 61 64 |.....// |.. ES ad|
|00002780| 64 69 74 69 6f 6e 0d 09 | 23 64 65 66 69 6e 65 20 |dition..|#define |
|00002790| 52 65 73 75 6c 74 50 72 | 6f 63 32 50 72 6f 63 50 |ResultPr|oc2ProcP|
|000027a0| 74 72 20 52 65 73 75 6c | 74 32 50 72 6f 63 50 74 |tr Resul|t2ProcPt|
|000027b0| 72 0d 09 23 64 65 66 69 | 6e 65 20 75 70 70 52 65 |r..#defi|ne uppRe|
|000027c0| 73 75 6c 74 50 72 6f 63 | 32 50 72 6f 63 49 6e 66 |sultProc|2ProcInf|
|000027d0| 6f 20 75 70 70 52 65 73 | 75 6c 74 32 50 72 6f 63 |o uppRes|ult2Proc|
|000027e0| 49 6e 66 6f 0d 09 23 64 | 65 66 69 6e 65 20 52 65 |Info..#d|efine Re|
|000027f0| 73 75 6c 74 50 72 6f 63 | 32 55 50 50 20 52 65 73 |sultProc|2UPP Res|
|00002800| 75 6c 74 32 55 50 50 0d | 09 23 64 65 66 69 6e 65 |ult2UPP.|.#define|
|00002810| 20 43 61 6c 6c 52 65 73 | 75 6c 74 50 72 6f 63 32 | CallRes|ultProc2|
|00002820| 50 72 6f 63 20 43 61 6c | 6c 52 65 73 75 6c 74 32 |Proc Cal|lResult2|
|00002830| 50 72 6f 63 0d 09 23 64 | 65 66 69 6e 65 20 4e 65 |Proc..#d|efine Ne|
|00002840| 77 52 65 73 75 6c 74 50 | 72 6f 63 32 50 72 6f 63 |wResultP|roc2Proc|
|00002850| 20 4e 65 77 52 65 73 75 | 6c 74 32 50 72 6f 63 0d | NewResu|lt2Proc.|
|00002860| 23 65 6e 64 69 66 0d 0d | 65 78 74 65 72 6e 20 70 |#endif..|extern p|
|00002870| 61 73 63 61 6c 20 4f 53 | 45 72 72 20 4f 70 65 6e |ascal OS|Err Open|
|00002880| 52 65 73 6f 6c 76 65 72 | 28 63 68 61 72 20 2a 66 |Resolver|(char *f|
|00002890| 69 6c 65 4e 61 6d 65 29 | 3b 0d 65 78 74 65 72 6e |ileName)|;.extern|
|000028a0| 20 70 61 73 63 61 6c 20 | 4f 53 45 72 72 20 53 74 | pascal |OSErr St|
|000028b0| 72 54 6f 41 64 64 72 28 | 63 68 61 72 20 2a 68 6f |rToAddr(|char *ho|
|000028c0| 73 74 4e 61 6d 65 2c 20 | 73 74 72 75 63 74 20 68 |stName, |struct h|
|000028d0| 6f 73 74 49 6e 66 6f 20 | 2a 68 6f 73 74 49 6e 66 |ostInfo |*hostInf|
|000028e0| 6f 50 74 72 2c 20 52 65 | 73 75 6c 74 55 50 50 20 |oPtr, Re|sultUPP |
|000028f0| 52 65 73 75 6c 74 50 72 | 6f 63 2c 20 63 68 61 72 |ResultPr|oc, char|
|00002900| 20 2a 75 73 65 72 44 61 | 74 61 50 74 72 29 3b 0d | *userDa|taPtr);.|
|00002910| 65 78 74 65 72 6e 20 70 | 61 73 63 61 6c 20 4f 53 |extern p|ascal OS|
|00002920| 45 72 72 20 41 64 64 72 | 54 6f 53 74 72 28 75 6e |Err Addr|ToStr(un|
|00002930| 73 69 67 6e 65 64 20 6c | 6f 6e 67 20 61 64 64 72 |signed l|ong addr|
|00002940| 2c 20 63 68 61 72 20 2a | 61 64 64 72 53 74 72 29 |, char *|addrStr)|
|00002950| 3b 0d 65 78 74 65 72 6e | 20 70 61 73 63 61 6c 20 |;.extern| pascal |
|00002960| 4f 53 45 72 72 20 45 6e | 75 6d 43 61 63 68 65 28 |OSErr En|umCache(|
|00002970| 45 6e 75 6d 52 65 73 75 | 6c 74 55 50 50 20 65 6e |EnumResu|ltUPP en|
|00002980| 75 6d 52 65 73 75 6c 74 | 50 72 6f 63 2c 20 63 68 |umResult|Proc, ch|
|00002990| 61 72 20 2a 75 73 65 72 | 44 61 74 61 50 74 72 29 |ar *user|DataPtr)|
|000029a0| 3b 0d 65 78 74 65 72 6e | 20 70 61 73 63 61 6c 20 |;.extern| pascal |
|000029b0| 4f 53 45 72 72 20 41 64 | 64 72 54 6f 4e 61 6d 65 |OSErr Ad|drToName|
|000029c0| 28 69 70 5f 61 64 64 72 | 20 61 64 64 72 2c 20 73 |(ip_addr| addr, s|
|000029d0| 74 72 75 63 74 20 68 6f | 73 74 49 6e 66 6f 20 2a |truct ho|stInfo *|
|000029e0| 68 6f 73 74 49 6e 66 6f | 50 74 72 2c 20 52 65 73 |hostInfo|Ptr, Res|
|000029f0| 75 6c 74 55 50 50 20 52 | 65 73 75 6c 74 50 72 6f |ultUPP R|esultPro|
|00002a00| 63 2c 20 63 68 61 72 20 | 2a 75 73 65 72 44 61 74 |c, char |*userDat|
|00002a10| 61 50 74 72 29 3b 0d 65 | 78 74 65 72 6e 20 70 61 |aPtr);.e|xtern pa|
|00002a20| 73 63 61 6c 20 4f 53 45 | 72 72 20 48 49 6e 66 6f |scal OSE|rr HInfo|
|00002a30| 28 63 68 61 72 20 2a 68 | 6f 73 74 4e 61 6d 65 2c |(char *h|ostName,|
|00002a40| 20 73 74 72 75 63 74 20 | 72 65 74 75 72 6e 52 65 | struct |returnRe|
|00002a50| 63 20 2a 72 65 74 75 72 | 6e 52 65 63 50 74 72 2c |c *retur|nRecPtr,|
|00002a60| 20 52 65 73 75 6c 74 32 | 55 50 50 20 72 65 73 75 | Result2|UPP resu|
|00002a70| 6c 74 50 72 6f 63 2c 20 | 63 68 61 72 20 2a 75 73 |ltProc, |char *us|
|00002a80| 65 72 44 61 74 61 50 74 | 72 29 3b 0d 65 78 74 65 |erDataPt|r);.exte|
|00002a90| 72 6e 20 70 61 73 63 61 | 6c 20 4f 53 45 72 72 20 |rn pasca|l OSErr |
|00002aa0| 4d 58 49 6e 66 6f 28 63 | 68 61 72 20 2a 68 6f 73 |MXInfo(c|har *hos|
|00002ab0| 74 4e 61 6d 65 2c 20 73 | 74 72 75 63 74 20 72 65 |tName, s|truct re|
|00002ac0| 74 75 72 6e 52 65 63 20 | 2a 72 65 74 75 72 6e 52 |turnRec |*returnR|
|00002ad0| 65 63 50 74 72 2c 20 52 | 65 73 75 6c 74 32 55 50 |ecPtr, R|esult2UP|
|00002ae0| 50 20 72 65 73 75 6c 74 | 50 72 6f 63 2c 20 63 68 |P result|Proc, ch|
|00002af0| 61 72 20 2a 75 73 65 72 | 44 61 74 61 50 74 72 29 |ar *user|DataPtr)|
|00002b00| 3b 0d 65 78 74 65 72 6e | 20 70 61 73 63 61 6c 20 |;.extern| pascal |
|00002b10| 4f 53 45 72 72 20 43 6c | 6f 73 65 52 65 73 6f 6c |OSErr Cl|oseResol|
|00002b20| 76 65 72 28 76 6f 69 64 | 29 3b 0d 2f 2a 20 63 73 |ver(void|);./* cs|
|00002b30| 43 6f 64 65 20 74 6f 20 | 67 65 74 20 6f 75 72 20 |Code to |get our |
|00002b40| 49 50 20 61 64 64 72 65 | 73 73 20 2a 2f 0d 0d 65 |IP addre|ss */..e|
|00002b50| 6e 75 6d 20 7b 0d 09 69 | 70 63 74 6c 47 65 74 41 |num {..i|pctlGetA|
|00002b60| 64 64 72 09 09 09 09 3d | 20 31 35 0d 7d 3b 0d 0d |ddr....=| 15.};..|
|00002b70| 73 74 72 75 63 74 20 47 | 65 74 41 64 64 72 50 61 |struct G|etAddrPa|
|00002b80| 72 61 6d 42 6c 6f 63 6b | 20 7b 0d 09 73 74 72 75 |ramBlock| {..stru|
|00002b90| 63 74 20 51 45 6c 65 6d | 09 09 09 09 09 2a 71 4c |ct QElem|.....*qL|
|00002ba0| 69 6e 6b 3b 0d 09 73 68 | 6f 72 74 09 09 09 09 09 |ink;..sh|ort.....|
|00002bb0| 09 09 71 54 79 70 65 3b | 0d 09 73 68 6f 72 74 09 |..qType;|..short.|
|00002bc0| 09 09 09 09 09 09 69 6f | 54 72 61 70 3b 0d 09 50 |......io|Trap;..P|
|00002bd0| 74 72 09 09 09 09 09 09 | 09 09 69 6f 43 6d 64 41 |tr......|..ioCmdA|
|00002be0| 64 64 72 3b 0d 09 55 6e | 69 76 65 72 73 61 6c 50 |ddr;..Un|iversalP|
|00002bf0| 72 6f 63 50 74 72 09 09 | 09 09 69 6f 43 6f 6d 70 |rocPtr..|..ioComp|
|00002c00| 6c 65 74 69 6f 6e 3b 0d | 09 4f 53 45 72 72 09 09 |letion;.|.OSErr..|
|00002c10| 09 09 09 09 09 69 6f 52 | 65 73 75 6c 74 3b 0d 09 |.....ioR|esult;..|
|00002c20| 53 74 72 69 6e 67 50 74 | 72 09 09 09 09 09 09 69 |StringPt|r......i|
|00002c30| 6f 4e 61 6d 65 50 74 72 | 3b 0d 09 73 68 6f 72 74 |oNamePtr|;..short|
|00002c40| 09 09 09 09 09 09 09 69 | 6f 56 52 65 66 4e 75 6d |.......i|oVRefNum|
|00002c50| 3b 0d 09 73 68 6f 72 74 | 09 09 09 09 09 09 09 69 |;..short|.......i|
|00002c60| 6f 43 52 65 66 4e 75 6d | 3b 0d 09 73 68 6f 72 74 |oCRefNum|;..short|
|00002c70| 09 09 09 09 09 09 09 63 | 73 43 6f 64 65 3b 09 09 |.......c|sCode;..|
|00002c80| 09 09 09 09 2f 2a 20 73 | 74 61 6e 64 61 72 64 20 |..../* s|tandard |
|00002c90| 49 2f 4f 20 68 65 61 64 | 65 72 20 2a 2f 0d 09 69 |I/O head|er */..i|
|00002ca0| 70 5f 61 64 64 72 09 09 | 09 09 09 09 09 6f 75 72 |p_addr..|.....our|
|00002cb0| 41 64 64 72 65 73 73 3b | 09 09 09 09 09 2f 2a 20 |Address;|...../* |
|00002cc0| 6f 75 72 20 49 50 20 61 | 64 64 72 65 73 73 20 2a |our IP a|ddress *|
|00002cd0| 2f 0d 09 6c 6f 6e 67 09 | 09 09 09 09 09 09 6f 75 |/..long.|......ou|
|00002ce0| 72 4e 65 74 4d 61 73 6b | 3b 09 09 09 09 09 2f 2a |rNetMask|;...../*|
|00002cf0| 20 6f 75 72 20 49 50 20 | 6e 65 74 20 6d 61 73 6b | our IP |net mask|
|00002d00| 20 2a 2f 0d 7d 3b 0d 74 | 79 70 65 64 65 66 20 73 | */.};.t|ypedef s|
|00002d10| 74 72 75 63 74 20 47 65 | 74 41 64 64 72 50 61 72 |truct Ge|tAddrPar|
|00002d20| 61 6d 42 6c 6f 63 6b 20 | 47 65 74 41 64 64 72 50 |amBlock |GetAddrP|
|00002d30| 61 72 61 6d 42 6c 6f 63 | 6b 3b 0d 0d 2f 2a 20 63 |aramBloc|k;../* c|
|00002d40| 6f 6e 74 72 6f 6c 20 63 | 6f 64 65 73 20 2a 2f 0d |ontrol c|odes */.|
|00002d50| 0d 65 6e 75 6d 20 7b 0d | 09 69 70 63 74 6c 45 63 |.enum {.|.ipctlEc|
|00002d60| 68 6f 49 43 4d 50 09 09 | 09 09 3d 20 31 37 2c 09 |hoICMP..|..= 17,.|
|00002d70| 09 09 09 09 09 09 2f 2a | 20 73 65 6e 64 20 69 63 |....../*| send ic|
|00002d80| 6d 70 20 65 63 68 6f 20 | 2a 2f 0d 09 69 70 63 74 |mp echo |*/..ipct|
|00002d90| 6c 4c 41 50 53 74 61 74 | 73 09 09 09 09 3d 20 31 |lLAPStat|s....= 1|
|00002da0| 39 09 09 09 09 09 09 09 | 2f 2a 20 67 65 74 20 6c |9.......|/* get l|
|00002db0| 61 70 20 73 74 61 74 73 | 20 2a 2f 0d 7d 3b 0d 0d |ap stats| */.};..|
|00002dc0| 73 74 72 75 63 74 20 49 | 43 4d 50 50 61 72 61 6d |struct I|CMPParam|
|00002dd0| 42 6c 6f 63 6b 20 7b 0d | 09 73 74 72 75 63 74 20 |Block {.|.struct |
|00002de0| 51 45 6c 65 6d 09 09 09 | 09 09 2a 71 4c 69 6e 6b |QElem...|..*qLink|
|00002df0| 3b 0d 09 73 68 6f 72 74 | 09 09 09 09 09 09 09 71 |;..short|.......q|
|00002e00| 54 79 70 65 3b 0d 09 73 | 68 6f 72 74 09 09 09 09 |Type;..s|hort....|
|00002e10| 09 09 09 69 6f 54 72 61 | 70 3b 0d 09 50 74 72 09 |...ioTra|p;..Ptr.|
|00002e20| 09 09 09 09 09 09 09 69 | 6f 43 6d 64 41 64 64 72 |.......i|oCmdAddr|
|00002e30| 3b 0d 09 55 6e 69 76 65 | 72 73 61 6c 50 72 6f 63 |;..Unive|rsalProc|
|00002e40| 50 74 72 09 09 09 09 69 | 6f 43 6f 6d 70 6c 65 74 |Ptr....i|oComplet|
|00002e50| 69 6f 6e 3b 0d 09 4f 53 | 45 72 72 09 09 09 09 09 |ion;..OS|Err.....|
|00002e60| 09 09 69 6f 52 65 73 75 | 6c 74 3b 0d 09 53 74 72 |..ioResu|lt;..Str|
|00002e70| 69 6e 67 50 74 72 09 09 | 09 09 09 09 69 6f 4e 61 |ingPtr..|....ioNa|
|00002e80| 6d 65 50 74 72 3b 0d 09 | 73 68 6f 72 74 09 09 09 |mePtr;..|short...|
|00002e90| 09 09 09 09 69 6f 56 52 | 65 66 4e 75 6d 3b 0d 09 |....ioVR|efNum;..|
|00002ea0| 73 68 6f 72 74 09 09 09 | 09 09 09 09 69 6f 43 52 |short...|....ioCR|
|00002eb0| 65 66 4e 75 6d 3b 0d 09 | 73 68 6f 72 74 09 09 09 |efNum;..|short...|
|00002ec0| 09 09 09 09 63 73 43 6f | 64 65 3b 09 09 09 09 09 |....csCo|de;.....|
|00002ed0| 09 2f 2a 20 73 74 61 6e | 64 61 72 64 20 49 2f 4f |./* stan|dard I/O|
|00002ee0| 20 68 65 61 64 65 72 20 | 2a 2f 0d 09 73 68 6f 72 | header |*/..shor|
|00002ef0| 74 09 09 09 09 09 09 09 | 70 61 72 61 6d 73 5b 31 |t.......|params[1|
|00002f00| 31 5d 3b 0d 09 09 73 74 | 72 75 63 74 20 7b 0d 09 |1];...st|ruct {..|
|00002f10| 09 09 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 09 |..unsign|ed long.|
|00002f20| 09 09 09 09 65 63 68 6f | 52 65 71 75 65 73 74 4f |....echo|RequestO|
|00002f30| 75 74 3b 09 09 2f 2a 20 | 74 69 6d 65 20 69 6e 20 |ut;../* |time in |
|00002f40| 74 69 63 6b 73 20 6f 66 | 20 77 68 65 6e 20 74 68 |ticks of| when th|
|00002f50| 65 20 65 63 68 6f 20 72 | 65 71 75 65 73 74 20 77 |e echo r|equest w|
|00002f60| 65 6e 74 20 6f 75 74 20 | 2a 2f 0d 09 09 09 75 6e |ent out |*/....un|
|00002f70| 73 69 67 6e 65 64 20 6c | 6f 6e 67 09 09 09 09 09 |signed l|ong.....|
|00002f80| 65 63 68 6f 52 65 70 6c | 79 49 6e 3b 09 09 2f 2a |echoRepl|yIn;../*|
|00002f90| 20 74 69 6d 65 20 69 6e | 20 74 69 63 6b 73 20 6f | time in| ticks o|
|00002fa0| 66 20 77 68 65 6e 20 74 | 68 65 20 72 65 70 6c 79 |f when t|he reply|
|00002fb0| 20 77 61 73 20 72 65 63 | 65 69 76 65 64 20 2a 2f | was rec|eived */|
|00002fc0| 0d 09 09 09 73 74 72 75 | 63 74 20 72 64 73 45 6e |....stru|ct rdsEn|
|00002fd0| 74 72 79 09 09 09 09 09 | 65 63 68 6f 65 64 44 61 |try.....|echoedDa|
|00002fe0| 74 61 3b 09 09 09 2f 2a | 20 64 61 74 61 20 72 65 |ta;.../*| data re|
|00002ff0| 63 65 69 76 65 64 20 69 | 6e 20 72 65 73 70 6f 6e |ceived i|n respon|
|00003000| 63 65 20 2a 2f 0d 09 09 | 09 50 74 72 09 09 09 09 |ce */...|.Ptr....|
|00003010| 09 09 09 09 6f 70 74 69 | 6f 6e 73 3b 0d 09 09 09 |....opti|ons;....|
|00003020| 75 6e 73 69 67 6e 65 64 | 20 6c 6f 6e 67 09 09 09 |unsigned| long...|
|00003030| 09 09 75 73 65 72 44 61 | 74 61 50 74 72 3b 0d 09 |..userDa|taPtr;..|
|00003040| 09 7d 09 09 09 09 09 09 | 09 69 63 6d 70 45 63 68 |.}......|.icmpEch|
|00003050| 6f 49 6e 66 6f 3b 0d 7d | 3b 0d 0d 65 6e 75 6d 20 |oInfo;.}|;..enum |
|00003060| 7b 0d 09 4e 42 50 5f 54 | 41 42 4c 45 5f 53 49 5a |{..NBP_T|ABLE_SIZ|
|00003070| 45 09 09 09 09 3d 20 32 | 30 2c 09 09 09 09 09 09 |E....= 2|0,......|
|00003080| 09 2f 2a 20 6e 75 6d 62 | 65 72 20 6f 66 20 4e 42 |./* numb|er of NB|
|00003090| 50 20 74 61 62 6c 65 20 | 65 6e 74 72 69 65 73 20 |P table |entries |
|000030a0| 2a 2f 0d 09 4e 42 50 5f | 4d 41 58 5f 4e 41 4d 45 |*/..NBP_|MAX_NAME|
|000030b0| 5f 53 49 5a 45 09 09 09 | 3d 20 31 36 20 2b 20 31 |_SIZE...|= 16 + 1|
|000030c0| 30 20 2b 20 32 0d 7d 3b | 0d 0d 73 74 72 75 63 74 |0 + 2.};|..struct|
|000030d0| 20 6e 62 70 5f 65 6e 74 | 72 79 20 7b 0d 09 69 70 | nbp_ent|ry {..ip|
|000030e0| 5f 61 64 64 72 09 09 09 | 09 09 09 09 69 70 5f 61 |_addr...|....ip_a|
|000030f0| 64 64 72 65 73 73 3b 09 | 09 09 09 09 2f 2a 20 49 |ddress;.|..../* I|
|00003100| 50 20 61 64 64 72 65 73 | 73 20 2a 2f 0d 09 41 64 |P addres|s */..Ad|
|00003110| 64 72 42 6c 6f 63 6b 09 | 09 09 09 09 09 61 74 5f |drBlock.|.....at_|
|00003120| 61 64 64 72 65 73 73 3b | 09 09 09 09 09 2f 2a 20 |address;|...../* |
|00003130| 6d 61 74 63 68 69 6e 67 | 20 41 70 70 6c 65 54 61 |matching| AppleTa|
|00003140| 6c 6b 20 61 64 64 72 65 | 73 73 20 2a 2f 0d 09 42 |lk addre|ss */..B|
|00003150| 6f 6f 6c 65 61 6e 09 09 | 09 09 09 09 09 67 61 74 |oolean..|.....gat|
|00003160| 65 77 61 79 3b 09 09 09 | 09 09 2f 2a 20 54 52 55 |eway;...|../* TRU|
|00003170| 45 20 69 66 20 65 6e 74 | 72 79 20 66 6f 72 20 61 |E if ent|ry for a|
|00003180| 20 67 61 74 65 77 61 79 | 20 2a 2f 0d 09 42 6f 6f | gateway| */..Boo|
|00003190| 6c 65 61 6e 09 09 09 09 | 09 09 09 76 61 6c 69 64 |lean....|...valid|
|000031a0| 3b 09 09 09 09 09 09 2f | 2a 20 54 52 55 45 20 69 |;....../|* TRUE i|
|000031b0| 66 20 4c 41 50 20 61 64 | 64 72 65 73 73 20 69 73 |f LAP ad|dress is|
|000031c0| 20 76 61 6c 69 64 20 2a | 2f 0d 09 42 6f 6f 6c 65 | valid *|/..Boole|
|000031d0| 61 6e 09 09 09 09 09 09 | 09 70 72 6f 62 69 6e 67 |an......|.probing|
|000031e0| 3b 09 09 09 09 09 2f 2a | 20 54 52 55 45 20 69 66 |;...../*| TRUE if|
|000031f0| 20 4e 42 50 20 6c 6f 6f | 6b 75 70 20 70 65 6e 64 | NBP loo|kup pend|
|00003200| 69 6e 67 20 2a 2f 0d 09 | 55 49 6e 74 38 09 09 09 |ing */..|UInt8...|
|00003210| 09 09 09 09 61 66 69 6c | 6c 65 72 3b 09 09 09 09 |....afil|ler;....|
|00003220| 09 2f 2a 20 46 69 6c 6c | 65 72 20 66 6f 72 20 70 |./* Fill|er for p|
|00003230| 72 6f 70 65 72 20 62 79 | 74 65 20 61 6c 69 67 6e |roper by|te align|
|00003240| 6d 65 6e 74 09 20 2a 2f | 0d 09 6c 6f 6e 67 09 09 |ment. */|..long..|
|00003250| 09 09 09 09 09 61 67 65 | 3b 09 09 09 09 09 09 2f |.....age|;....../|
|00003260| 2a 20 74 69 63 6b 73 20 | 73 69 6e 63 65 20 63 61 |* ticks |since ca|
|00003270| 63 68 65 20 65 6e 74 72 | 79 20 76 65 72 69 66 69 |che entr|y verifi|
|00003280| 65 64 20 2a 2f 0d 09 6c | 6f 6e 67 09 09 09 09 09 |ed */..l|ong.....|
|00003290| 09 09 61 63 63 65 73 73 | 3b 09 09 09 09 09 09 2f |..access|;....../|
|000032a0| 2a 20 74 69 63 6b 73 20 | 73 69 6e 63 65 20 6c 61 |* ticks |since la|
|000032b0| 73 74 20 61 63 63 65 73 | 73 20 2a 2f 0d 09 63 68 |st acces|s */..ch|
|000032c0| 61 72 09 09 09 09 09 09 | 09 66 69 6c 6c 65 72 5b |ar......|.filler[|
|000032d0| 31 31 36 5d 3b 09 09 09 | 09 2f 2a 20 66 6f 72 20 |116];...|./* for |
|000032e0| 69 6e 74 65 72 6e 61 6c | 20 75 73 65 20 6f 6e 6c |internal| use onl|
|000032f0| 79 20 21 21 21 20 2a 2f | 0d 7d 3b 0d 2f 2a 20 6e |y !!! */|.};./* n|
|00003300| 75 6d 62 65 72 20 6f 66 | 20 41 52 50 20 74 61 62 |umber of| ARP tab|
|00003310| 6c 65 20 65 6e 74 72 69 | 65 73 20 2a 2f 0d 0d 65 |le entri|es */..e|
|00003320| 6e 75 6d 20 7b 0d 09 41 | 52 50 5f 54 41 42 4c 45 |num {..A|RP_TABLE|
|00003330| 5f 53 49 5a 45 09 09 09 | 09 3d 20 32 30 0d 7d 3b |_SIZE...|.= 20.};|
|00003340| 0d 0d 73 74 72 75 63 74 | 20 45 6e 65 74 5f 61 64 |..struct| Enet_ad|
|00003350| 64 72 20 7b 0d 09 62 5f | 31 36 09 09 09 09 09 09 |dr {..b_|16......|
|00003360| 09 65 6e 5f 68 69 3b 0d | 09 62 5f 33 32 09 09 09 |.en_hi;.|.b_32...|
|00003370| 09 09 09 09 65 6e 5f 6c | 6f 3b 0d 7d 3b 0d 74 79 |....en_l|o;.};.ty|
|00003380| 70 65 64 65 66 20 73 74 | 72 75 63 74 20 45 6e 65 |pedef st|ruct Ene|
|00003390| 74 5f 61 64 64 72 20 45 | 6e 65 74 5f 61 64 64 72 |t_addr E|net_addr|
|000033a0| 3b 0d 0d 73 74 72 75 63 | 74 20 61 72 70 5f 65 6e |;..struc|t arp_en|
|000033b0| 74 72 79 20 7b 0d 09 73 | 68 6f 72 74 09 09 09 09 |try {..s|hort....|
|000033c0| 09 09 09 61 67 65 3b 09 | 09 09 09 09 09 2f 2a 20 |...age;.|...../* |
|000033d0| 63 61 63 68 65 20 61 67 | 69 6e 67 20 66 69 65 6c |cache ag|ing fiel|
|000033e0| 64 20 2a 2f 0d 09 62 5f | 31 36 09 09 09 09 09 09 |d */..b_|16......|
|000033f0| 09 70 72 6f 74 6f 63 6f | 6c 3b 09 09 09 09 09 2f |.protoco|l;...../|
|00003400| 2a 20 50 72 6f 74 6f 63 | 6f 6c 20 74 79 70 65 20 |* Protoc|ol type |
|00003410| 2a 2f 0d 09 69 70 5f 61 | 64 64 72 09 09 09 09 09 |*/..ip_a|ddr.....|
|00003420| 09 09 69 70 5f 61 64 64 | 72 65 73 73 3b 09 09 09 |..ip_add|ress;...|
|00003430| 09 09 2f 2a 20 49 50 20 | 61 64 64 72 65 73 73 20 |../* IP |address |
|00003440| 2a 2f 0d 09 45 6e 65 74 | 5f 61 64 64 72 09 09 09 |*/..Enet|_addr...|
|00003450| 09 09 09 65 6e 5f 61 64 | 64 72 65 73 73 3b 09 09 |...en_ad|dress;..|
|00003460| 09 09 09 2f 2a 20 6d 61 | 74 63 68 69 6e 67 20 45 |.../* ma|tching E|
|00003470| 74 68 65 72 6e 65 74 20 | 61 64 64 72 65 73 73 20 |thernet |address |
|00003480| 2a 2f 0d 7d 3b 0d 74 79 | 70 65 64 65 66 20 73 74 |*/.};.ty|pedef st|
|00003490| 72 75 63 74 20 61 72 70 | 5f 65 6e 74 72 79 20 61 |ruct arp|_entry a|
|000034a0| 72 70 5f 65 6e 74 72 79 | 3b 0d 0d 2f 2a 20 43 6f |rp_entry|;../* Co|
|000034b0| 6d 6d 61 6e 64 20 63 6f | 64 65 73 20 2a 2f 0d 0d |mmand co|des */..|
|000034c0| 65 6e 75 6d 20 7b 0d 09 | 54 43 50 43 72 65 61 74 |enum {..|TCPCreat|
|000034d0| 65 09 09 09 09 09 3d 20 | 33 30 2c 0d 09 54 43 50 |e.....= |30,..TCP|
|000034e0| 50 61 73 73 69 76 65 4f | 70 65 6e 09 09 09 09 3d |PassiveO|pen....=|
|000034f0| 20 33 31 2c 0d 09 54 43 | 50 41 63 74 69 76 65 4f | 31,..TC|PActiveO|
|00003500| 70 65 6e 09 09 09 09 3d | 20 33 32 2c 0d 09 54 43 |pen....=| 32,..TC|
|00003510| 50 53 65 6e 64 09 09 09 | 09 09 09 3d 20 33 34 2c |PSend...|...= 34,|
|00003520| 0d 09 54 43 50 4e 6f 43 | 6f 70 79 52 63 76 09 09 |..TCPNoC|opyRcv..|
|00003530| 09 09 3d 20 33 35 2c 0d | 09 54 43 50 52 63 76 42 |..= 35,.|.TCPRcvB|
|00003540| 66 72 52 65 74 75 72 6e | 09 09 09 09 3d 20 33 36 |frReturn|....= 36|
|00003550| 2c 0d 09 54 43 50 52 63 | 76 09 09 09 09 09 09 3d |,..TCPRc|v......=|
|00003560| 20 33 37 2c 0d 09 54 43 | 50 43 6c 6f 73 65 09 09 | 37,..TC|PClose..|
|00003570| 09 09 09 3d 20 33 38 2c | 0d 09 54 43 50 41 62 6f |...= 38,|..TCPAbo|
|00003580| 72 74 09 09 09 09 09 3d | 20 33 39 2c 0d 09 54 43 |rt.....=| 39,..TC|
|00003590| 50 53 74 61 74 75 73 09 | 09 09 09 09 3d 20 34 30 |PStatus.|....= 40|
|000035a0| 2c 0d 09 54 43 50 45 78 | 74 65 6e 64 65 64 53 74 |,..TCPEx|tendedSt|
|000035b0| 61 74 09 09 09 09 3d 20 | 34 31 2c 0d 09 54 43 50 |at....= |41,..TCP|
|000035c0| 52 65 6c 65 61 73 65 09 | 09 09 09 09 3d 20 34 32 |Release.|....= 42|
|000035d0| 2c 0d 09 54 43 50 47 6c | 6f 62 61 6c 49 6e 66 6f |,..TCPGl|obalInfo|
|000035e0| 09 09 09 09 3d 20 34 33 | 2c 0d 09 54 43 50 43 74 |....= 43|,..TCPCt|
|000035f0| 6c 4d 61 78 09 09 09 09 | 09 3d 20 34 39 0d 7d 3b |lMax....|.= 49.};|
|00003600| 0d 0d 74 79 70 65 64 65 | 66 20 76 6f 69 64 20 28 |..typede|f void (|
|00003610| 2a 49 43 4d 50 45 63 68 | 6f 4e 6f 74 69 66 79 50 |*ICMPEch|oNotifyP|
|00003620| 72 6f 63 50 74 72 29 28 | 73 74 72 75 63 74 20 49 |rocPtr)(|struct I|
|00003630| 43 4d 50 50 61 72 61 6d | 42 6c 6f 63 6b 20 2a 69 |CMPParam|Block *i|
|00003640| 6f 70 62 29 3b 0d 0d 23 | 69 66 20 47 45 4e 45 52 |opb);..#|if GENER|
|00003650| 41 54 49 4e 47 43 46 4d | 0d 74 79 70 65 64 65 66 |ATINGCFM|.typedef|
|00003660| 20 55 6e 69 76 65 72 73 | 61 6c 50 72 6f 63 50 74 | Univers|alProcPt|
|00003670| 72 20 49 43 4d 50 45 63 | 68 6f 4e 6f 74 69 66 79 |r ICMPEc|hoNotify|
|00003680| 55 50 50 3b 0d 23 65 6c | 73 65 0d 74 79 70 65 64 |UPP;.#el|se.typed|
|00003690| 65 66 20 49 43 4d 50 45 | 63 68 6f 4e 6f 74 69 66 |ef ICMPE|choNotif|
|000036a0| 79 50 72 6f 63 50 74 72 | 20 49 43 4d 50 45 63 68 |yProcPtr| ICMPEch|
|000036b0| 6f 4e 6f 74 69 66 79 55 | 50 50 3b 0d 23 65 6e 64 |oNotifyU|PP;.#end|
|000036c0| 69 66 0d 0d 65 6e 75 6d | 20 7b 0d 09 75 70 70 49 |if..enum| {..uppI|
|000036d0| 43 4d 50 45 63 68 6f 4e | 6f 74 69 66 79 50 72 6f |CMPEchoN|otifyPro|
|000036e0| 63 49 6e 66 6f 20 3d 20 | 6b 43 53 74 61 63 6b 42 |cInfo = |kCStackB|
|000036f0| 61 73 65 64 0d 09 09 20 | 7c 20 53 54 41 43 4b 5f |ased... || STACK_|
|00003700| 52 4f 55 54 49 4e 45 5f | 50 41 52 41 4d 45 54 45 |ROUTINE_|PARAMETE|
|00003710| 52 28 31 2c 20 53 49 5a | 45 5f 43 4f 44 45 28 73 |R(1, SIZ|E_CODE(s|
|00003720| 69 7a 65 6f 66 28 73 74 | 72 75 63 74 20 49 43 4d |izeof(st|ruct ICM|
|00003730| 50 50 61 72 61 6d 42 6c | 6f 63 6b 2a 29 29 29 0d |PParamBl|ock*))).|
|00003740| 7d 3b 0d 0d 23 69 66 20 | 47 45 4e 45 52 41 54 49 |};..#if |GENERATI|
|00003750| 4e 47 43 46 4d 0d 23 64 | 65 66 69 6e 65 20 4e 65 |NGCFM.#d|efine Ne|
|00003760| 77 49 43 4d 50 45 63 68 | 6f 4e 6f 74 69 66 79 50 |wICMPEch|oNotifyP|
|00003770| 72 6f 63 28 75 73 65 72 | 52 6f 75 74 69 6e 65 29 |roc(user|Routine)|
|00003780| 09 09 5c 0d 09 09 28 49 | 43 4d 50 45 63 68 6f 4e |..\...(I|CMPEchoN|
|00003790| 6f 74 69 66 79 55 50 50 | 29 20 4e 65 77 52 6f 75 |otifyUPP|) NewRou|
|000037a0| 74 69 6e 65 44 65 73 63 | 72 69 70 74 6f 72 28 28 |tineDesc|riptor((|
|000037b0| 50 72 6f 63 50 74 72 29 | 28 75 73 65 72 52 6f 75 |ProcPtr)|(userRou|
|000037c0| 74 69 6e 65 29 2c 20 75 | 70 70 49 43 4d 50 45 63 |tine), u|ppICMPEc|
|000037d0| 68 6f 4e 6f 74 69 66 79 | 50 72 6f 63 49 6e 66 6f |hoNotify|ProcInfo|
|000037e0| 2c 20 47 65 74 43 75 72 | 72 65 6e 74 41 72 63 68 |, GetCur|rentArch|
|000037f0| 69 74 65 63 74 75 72 65 | 28 29 29 0d 23 65 6c 73 |itecture|()).#els|
|00003800| 65 0d 23 64 65 66 69 6e | 65 20 4e 65 77 49 43 4d |e.#defin|e NewICM|
|00003810| 50 45 63 68 6f 4e 6f 74 | 69 66 79 50 72 6f 63 28 |PEchoNot|ifyProc(|
|00003820| 75 73 65 72 52 6f 75 74 | 69 6e 65 29 09 09 5c 0d |userRout|ine)..\.|
|00003830| 09 09 28 28 49 43 4d 50 | 45 63 68 6f 4e 6f 74 69 |..((ICMP|EchoNoti|
|00003840| 66 79 55 50 50 29 20 28 | 75 73 65 72 52 6f 75 74 |fyUPP) (|userRout|
|00003850| 69 6e 65 29 29 0d 23 65 | 6e 64 69 66 0d 0d 23 69 |ine)).#e|ndif..#i|
|00003860| 66 20 47 45 4e 45 52 41 | 54 49 4e 47 43 46 4d 0d |f GENERA|TINGCFM.|
|00003870| 23 64 65 66 69 6e 65 20 | 43 61 6c 6c 49 43 4d 50 |#define |CallICMP|
|00003880| 45 63 68 6f 4e 6f 74 69 | 66 79 50 72 6f 63 28 75 |EchoNoti|fyProc(u|
|00003890| 73 65 72 52 6f 75 74 69 | 6e 65 2c 20 69 6f 70 62 |serRouti|ne, iopb|
|000038a0| 29 09 09 5c 0d 09 09 43 | 61 6c 6c 55 6e 69 76 65 |)..\...C|allUnive|
|000038b0| 72 73 61 6c 50 72 6f 63 | 28 28 55 6e 69 76 65 72 |rsalProc|((Univer|
|000038c0| 73 61 6c 50 72 6f 63 50 | 74 72 29 28 75 73 65 72 |salProcP|tr)(user|
|000038d0| 52 6f 75 74 69 6e 65 29 | 2c 20 75 70 70 49 43 4d |Routine)|, uppICM|
|000038e0| 50 45 63 68 6f 4e 6f 74 | 69 66 79 50 72 6f 63 49 |PEchoNot|ifyProcI|
|000038f0| 6e 66 6f 2c 20 28 69 6f | 70 62 29 29 0d 23 65 6c |nfo, (io|pb)).#el|
|00003900| 73 65 0d 23 64 65 66 69 | 6e 65 20 43 61 6c 6c 49 |se.#defi|ne CallI|
|00003910| 43 4d 50 45 63 68 6f 4e | 6f 74 69 66 79 50 72 6f |CMPEchoN|otifyPro|
|00003920| 63 28 75 73 65 72 52 6f | 75 74 69 6e 65 2c 20 69 |c(userRo|utine, i|
|00003930| 6f 70 62 29 09 09 5c 0d | 09 09 28 2a 28 75 73 65 |opb)..\.|..(*(use|
|00003940| 72 52 6f 75 74 69 6e 65 | 29 29 28 28 69 6f 70 62 |rRoutine|))((iopb|
|00003950| 29 29 0d 23 65 6e 64 69 | 66 0d 0d 73 74 72 75 63 |)).#endi|f..struc|
|00003960| 74 20 49 50 50 61 72 61 | 6d 42 6c 6f 63 6b 20 7b |t IPPara|mBlock {|
|00003970| 0d 09 73 74 72 75 63 74 | 20 51 45 6c 65 6d 09 09 |..struct| QElem..|
|00003980| 09 09 09 2a 71 4c 69 6e | 6b 3b 0d 09 73 68 6f 72 |...*qLin|k;..shor|
|00003990| 74 09 09 09 09 09 09 09 | 71 54 79 70 65 3b 0d 09 |t.......|qType;..|
|000039a0| 73 68 6f 72 74 09 09 09 | 09 09 09 09 69 6f 54 72 |short...|....ioTr|
|000039b0| 61 70 3b 0d 09 50 74 72 | 09 09 09 09 09 09 09 09 |ap;..Ptr|........|
|000039c0| 69 6f 43 6d 64 41 64 64 | 72 3b 0d 09 55 6e 69 76 |ioCmdAdd|r;..Univ|
|000039d0| 65 72 73 61 6c 50 72 6f | 63 50 74 72 09 09 09 09 |ersalPro|cPtr....|
|000039e0| 69 6f 43 6f 6d 70 6c 65 | 74 69 6f 6e 3b 0d 09 4f |ioComple|tion;..O|
|000039f0| 53 45 72 72 09 09 09 09 | 09 09 09 69 6f 52 65 73 |SErr....|...ioRes|
|00003a00| 75 6c 74 3b 0d 09 53 74 | 72 69 6e 67 50 74 72 09 |ult;..St|ringPtr.|
|00003a10| 09 09 09 09 09 69 6f 4e | 61 6d 65 50 74 72 3b 0d |.....ioN|amePtr;.|
|00003a20| 09 73 68 6f 72 74 09 09 | 09 09 09 09 09 69 6f 56 |.short..|.....ioV|
|00003a30| 52 65 66 4e 75 6d 3b 0d | 09 73 68 6f 72 74 09 09 |RefNum;.|.short..|
|00003a40| 09 09 09 09 09 69 6f 43 | 52 65 66 4e 75 6d 3b 0d |.....ioC|RefNum;.|
|00003a50| 09 73 68 6f 72 74 09 09 | 09 09 09 09 09 63 73 43 |.short..|.....csC|
|00003a60| 6f 64 65 3b 09 09 09 09 | 09 09 2f 2a 20 73 74 61 |ode;....|../* sta|
|00003a70| 6e 64 61 72 64 20 49 2f | 4f 20 68 65 61 64 65 72 |ndard I/|O header|
|00003a80| 20 2a 2f 0d 09 09 75 6e | 69 6f 6e 20 7b 0d 09 09 | */...un|ion {...|
|00003a90| 09 09 73 74 72 75 63 74 | 20 7b 0d 09 09 09 09 09 |..struct| {......|
|00003aa0| 69 70 5f 61 64 64 72 09 | 09 09 09 09 09 09 64 65 |ip_addr.|......de|
|00003ab0| 73 74 3b 09 09 2f 2a 20 | 65 63 68 6f 20 74 6f 20 |st;../* |echo to |
|00003ac0| 49 50 20 61 64 64 72 65 | 73 73 20 2a 2f 0d 09 09 |IP addre|ss */...|
|00003ad0| 09 09 09 77 64 73 45 6e | 74 72 79 09 09 09 09 09 |...wdsEn|try.....|
|00003ae0| 09 64 61 74 61 3b 0d 09 | 09 09 09 09 73 68 6f 72 |.data;..|....shor|
|00003af0| 74 09 09 09 09 09 09 09 | 74 69 6d 65 6f 75 74 3b |t.......|timeout;|
|00003b00| 0d 09 09 09 09 09 50 74 | 72 09 09 09 09 09 09 09 |......Pt|r.......|
|00003b10| 09 6f 70 74 69 6f 6e 73 | 3b 0d 09 09 09 09 09 75 |.options|;......u|
|00003b20| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 09 09 09 |nsigned |short...|
|00003b30| 09 09 6f 70 74 4c 65 6e | 67 74 68 3b 0d 09 09 09 |..optLen|gth;....|
|00003b40| 09 09 49 43 4d 50 45 63 | 68 6f 4e 6f 74 69 66 79 |..ICMPEc|hoNotify|
|00003b50| 55 50 50 09 09 09 09 69 | 63 6d 70 43 6f 6d 70 6c |UPP....i|cmpCompl|
|00003b60| 65 74 69 6f 6e 3b 0d 09 | 09 09 09 09 75 6e 73 69 |etion;..|....unsi|
|00003b70| 67 6e 65 64 20 6c 6f 6e | 67 09 09 09 09 09 75 73 |gned lon|g.....us|
|00003b80| 65 72 44 61 74 61 50 74 | 72 3b 0d 09 09 09 09 7d |erDataPt|r;.....}|
|00003b90| 09 09 09 09 09 09 09 49 | 50 45 63 68 6f 50 42 3b |.......I|PEchoPB;|
|00003ba0| 0d 09 09 09 09 73 74 72 | 75 63 74 20 7b 0d 09 09 |.....str|uct {...|
|00003bb0| 09 09 09 73 74 72 75 63 | 74 20 4c 41 50 53 74 61 |...struc|t LAPSta|
|00003bc0| 74 73 09 09 09 09 09 2a | 6c 61 70 53 74 61 74 73 |ts.....*|lapStats|
|00003bd0| 50 74 72 3b 0d 09 09 09 | 09 7d 09 09 09 09 09 09 |Ptr;....|.}......|
|00003be0| 09 4c 41 50 53 74 61 74 | 73 50 42 3b 0d 09 09 7d |.LAPStat|sPB;...}|
|00003bf0| 09 09 09 09 09 09 09 63 | 73 50 61 72 61 6d 3b 0d |.......c|sParam;.|
|00003c00| 7d 3b 0d 73 74 72 75 63 | 74 20 4c 41 50 53 74 61 |};.struc|t LAPSta|
|00003c10| 74 73 20 7b 0d 09 73 68 | 6f 72 74 09 09 09 09 09 |ts {..sh|ort.....|
|00003c20| 09 09 69 66 54 79 70 65 | 3b 0d 09 63 68 61 72 09 |..ifType|;..char.|
|00003c30| 09 09 09 09 09 09 2a 69 | 66 53 74 72 69 6e 67 3b |......*i|fString;|
|00003c40| 0d 09 73 68 6f 72 74 09 | 09 09 09 09 09 09 69 66 |..short.|......if|
|00003c50| 4d 61 78 4d 54 55 3b 0d | 09 6c 6f 6e 67 09 09 09 |MaxMTU;.|.long...|
|00003c60| 09 09 09 09 69 66 53 70 | 65 65 64 3b 0d 09 73 68 |....ifSp|eed;..sh|
|00003c70| 6f 72 74 09 09 09 09 09 | 09 09 69 66 50 68 79 41 |ort.....|..ifPhyA|
|00003c80| 64 64 72 4c 65 6e 67 74 | 68 3b 0d 09 63 68 61 72 |ddrLengt|h;..char|
|00003c90| 09 09 09 09 09 09 09 2a | 69 66 50 68 79 73 69 63 |.......*|ifPhysic|
|00003ca0| 61 6c 41 64 64 72 65 73 | 73 3b 0d 09 09 75 6e 69 |alAddres|s;...uni|
|00003cb0| 6f 6e 20 7b 0d 09 09 09 | 73 74 72 75 63 74 20 61 |on {....|struct a|
|00003cc0| 72 70 5f 65 6e 74 72 79 | 09 09 09 09 2a 61 72 70 |rp_entry|....*arp|
|00003cd0| 5f 74 61 62 6c 65 3b 0d | 09 09 09 73 74 72 75 63 |_table;.|...struc|
|00003ce0| 74 20 6e 62 70 5f 65 6e | 74 72 79 09 09 09 09 2a |t nbp_en|try....*|
|00003cf0| 6e 62 70 5f 74 61 62 6c | 65 3b 0d 09 09 7d 09 09 |nbp_tabl|e;...}..|
|00003d00| 09 09 09 09 09 41 64 64 | 72 58 6c 61 74 69 6f 6e |.....Add|rXlation|
|00003d10| 3b 0d 09 73 68 6f 72 74 | 09 09 09 09 09 09 09 73 |;..short|.......s|
|00003d20| 6c 6f 74 4e 75 6d 62 65 | 72 3b 0d 7d 3b 0d 74 79 |lotNumbe|r;.};.ty|
|00003d30| 70 65 64 65 66 20 73 74 | 72 75 63 74 20 4c 41 50 |pedef st|ruct LAP|
|00003d40| 53 74 61 74 73 20 4c 41 | 50 53 74 61 74 73 3b 0d |Stats LA|PStats;.|
|00003d50| 0d 0d 65 6e 75 6d 20 7b | 0d 09 54 43 50 43 6c 6f |..enum {|..TCPClo|
|00003d60| 73 69 6e 67 09 09 09 09 | 09 3d 20 31 2c 0d 09 54 |sing....|.= 1,..T|
|00003d70| 43 50 55 4c 50 54 69 6d | 65 6f 75 74 09 09 09 09 |CPULPTim|eout....|
|00003d80| 3d 20 32 2c 0d 09 54 43 | 50 54 65 72 6d 69 6e 61 |= 2,..TC|PTermina|
|00003d90| 74 65 09 09 09 09 3d 20 | 33 2c 0d 09 54 43 50 44 |te....= |3,..TCPD|
|00003da0| 61 74 61 41 72 72 69 76 | 61 6c 09 09 09 09 3d 20 |ataArriv|al....= |
|00003db0| 34 2c 0d 09 54 43 50 55 | 72 67 65 6e 74 09 09 09 |4,..TCPU|rgent...|
|00003dc0| 09 09 3d 20 35 2c 0d 09 | 54 43 50 49 43 4d 50 52 |..= 5,..|TCPICMPR|
|00003dd0| 65 63 65 69 76 65 64 09 | 09 09 09 3d 20 36 0d 7d |eceived.|...= 6.}|
|00003de0| 3b 0d 0d 74 79 70 65 64 | 65 66 20 75 6e 73 69 67 |;..typed|ef unsig|
|00003df0| 6e 65 64 20 73 68 6f 72 | 74 20 54 43 50 45 76 65 |ned shor|t TCPEve|
|00003e00| 6e 74 43 6f 64 65 3b 0d | 0d 0d 65 6e 75 6d 20 7b |ntCode;.|..enum {|
|00003e10| 0d 09 54 43 50 52 65 6d | 6f 74 65 41 62 6f 72 74 |..TCPRem|oteAbort|
|00003e20| 09 09 09 09 3d 20 32 2c | 0d 09 54 43 50 4e 65 74 |....= 2,|..TCPNet|
|00003e30| 77 6f 72 6b 46 61 69 6c | 75 72 65 09 09 09 3d 20 |workFail|ure...= |
|00003e40| 33 2c 0d 09 54 43 50 53 | 65 63 50 72 65 63 4d 69 |3,..TCPS|ecPrecMi|
|00003e50| 73 6d 61 74 63 68 09 09 | 09 3d 20 34 2c 0d 09 54 |smatch..|.= 4,..T|
|00003e60| 43 50 55 4c 50 54 69 6d | 65 6f 75 74 54 65 72 6d |CPULPTim|eoutTerm|
|00003e70| 69 6e 61 74 65 09 09 3d | 20 35 2c 0d 09 54 43 50 |inate..=| 5,..TCP|
|00003e80| 55 4c 50 41 62 6f 72 74 | 09 09 09 09 09 3d 20 36 |ULPAbort|.....= 6|
|00003e90| 2c 0d 09 54 43 50 55 4c | 50 43 6c 6f 73 65 09 09 |,..TCPUL|PClose..|
|00003ea0| 09 09 09 3d 20 37 2c 0d | 09 54 43 50 53 65 72 76 |...= 7,.|.TCPServ|
|00003eb0| 69 63 65 45 72 72 6f 72 | 09 09 09 09 3d 20 38 0d |iceError|....= 8.|
|00003ec0| 7d 3b 0d 0d 74 79 70 65 | 64 65 66 20 75 6e 73 69 |};..type|def unsi|
|00003ed0| 67 6e 65 64 20 73 68 6f | 72 74 20 54 43 50 54 65 |gned sho|rt TCPTe|
|00003ee0| 72 6d 69 6e 61 74 69 6f | 6e 52 65 61 73 6f 6e 3b |rminatio|nReason;|
|00003ef0| 0d 0d 74 79 70 65 64 65 | 66 20 70 61 73 63 61 6c |..typede|f pascal|
|00003f00| 20 76 6f 69 64 20 28 2a | 54 43 50 4e 6f 74 69 66 | void (*|TCPNotif|
|00003f10| 79 50 72 6f 63 50 74 72 | 29 28 53 74 72 65 61 6d |yProcPtr|)(Stream|
|00003f20| 50 74 72 20 74 63 70 53 | 74 72 65 61 6d 2c 20 75 |Ptr tcpS|tream, u|
|00003f30| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 20 65 76 |nsigned |short ev|
|00003f40| 65 6e 74 43 6f 64 65 2c | 20 50 74 72 20 75 73 65 |entCode,| Ptr use|
|00003f50| 72 44 61 74 61 50 74 72 | 2c 20 75 6e 73 69 67 6e |rDataPtr|, unsign|
|00003f60| 65 64 20 73 68 6f 72 74 | 20 74 65 72 6d 69 6e 52 |ed short| terminR|
|00003f70| 65 61 73 6f 6e 2c 20 73 | 74 72 75 63 74 20 49 43 |eason, s|truct IC|
|00003f80| 4d 50 52 65 70 6f 72 74 | 20 2a 69 63 6d 70 4d 73 |MPReport| *icmpMs|
|00003f90| 67 29 3b 0d 0d 23 69 66 | 20 47 45 4e 45 52 41 54 |g);..#if| GENERAT|
|00003fa0| 49 4e 47 43 46 4d 0d 74 | 79 70 65 64 65 66 20 55 |INGCFM.t|ypedef U|
|00003fb0| 6e 69 76 65 72 73 61 6c | 50 72 6f 63 50 74 72 20 |niversal|ProcPtr |
|00003fc0| 54 43 50 4e 6f 74 69 66 | 79 55 50 50 3b 0d 23 65 |TCPNotif|yUPP;.#e|
|00003fd0| 6c 73 65 0d 74 79 70 65 | 64 65 66 20 54 43 50 4e |lse.type|def TCPN|
|00003fe0| 6f 74 69 66 79 50 72 6f | 63 50 74 72 20 54 43 50 |otifyPro|cPtr TCP|
|00003ff0| 4e 6f 74 69 66 79 55 50 | 50 3b 0d 23 65 6e 64 69 |NotifyUP|P;.#endi|
|00004000| 66 0d 0d 65 6e 75 6d 20 | 7b 0d 09 75 70 70 54 43 |f..enum |{..uppTC|
|00004010| 50 4e 6f 74 69 66 79 50 | 72 6f 63 49 6e 66 6f 20 |PNotifyP|rocInfo |
|00004020| 3d 20 6b 50 61 73 63 61 | 6c 53 74 61 63 6b 42 61 |= kPasca|lStackBa|
|00004030| 73 65 64 0d 09 09 20 7c | 20 53 54 41 43 4b 5f 52 |sed... || STACK_R|
|00004040| 4f 55 54 49 4e 45 5f 50 | 41 52 41 4d 45 54 45 52 |OUTINE_P|ARAMETER|
|00004050| 28 31 2c 20 53 49 5a 45 | 5f 43 4f 44 45 28 73 69 |(1, SIZE|_CODE(si|
|00004060| 7a 65 6f 66 28 53 74 72 | 65 61 6d 50 74 72 29 29 |zeof(Str|eamPtr))|
|00004070| 29 0d 09 09 20 7c 20 53 | 54 41 43 4b 5f 52 4f 55 |)... | S|TACK_ROU|
|00004080| 54 49 4e 45 5f 50 41 52 | 41 4d 45 54 45 52 28 32 |TINE_PAR|AMETER(2|
|00004090| 2c 20 53 49 5a 45 5f 43 | 4f 44 45 28 73 69 7a 65 |, SIZE_C|ODE(size|
|000040a0| 6f 66 28 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 |of(unsig|ned shor|
|000040b0| 74 29 29 29 0d 09 09 20 | 7c 20 53 54 41 43 4b 5f |t)))... || STACK_|
|000040c0| 52 4f 55 54 49 4e 45 5f | 50 41 52 41 4d 45 54 45 |ROUTINE_|PARAMETE|
|000040d0| 52 28 33 2c 20 53 49 5a | 45 5f 43 4f 44 45 28 73 |R(3, SIZ|E_CODE(s|
|000040e0| 69 7a 65 6f 66 28 50 74 | 72 29 29 29 0d 09 09 20 |izeof(Pt|r)))... |
|000040f0| 7c 20 53 54 41 43 4b 5f | 52 4f 55 54 49 4e 45 5f || STACK_|ROUTINE_|
|00004100| 50 41 52 41 4d 45 54 45 | 52 28 34 2c 20 53 49 5a |PARAMETE|R(4, SIZ|
|00004110| 45 5f 43 4f 44 45 28 73 | 69 7a 65 6f 66 28 75 6e |E_CODE(s|izeof(un|
|00004120| 73 69 67 6e 65 64 20 73 | 68 6f 72 74 29 29 29 0d |signed s|hort))).|
|00004130| 09 09 20 7c 20 53 54 41 | 43 4b 5f 52 4f 55 54 49 |.. | STA|CK_ROUTI|
|00004140| 4e 45 5f 50 41 52 41 4d | 45 54 45 52 28 35 2c 20 |NE_PARAM|ETER(5, |
|00004150| 53 49 5a 45 5f 43 4f 44 | 45 28 73 69 7a 65 6f 66 |SIZE_COD|E(sizeof|
|00004160| 28 73 74 72 75 63 74 20 | 49 43 4d 50 52 65 70 6f |(struct |ICMPRepo|
|00004170| 72 74 2a 29 29 29 0d 7d | 3b 0d 0d 23 69 66 20 47 |rt*))).}|;..#if G|
|00004180| 45 4e 45 52 41 54 49 4e | 47 43 46 4d 0d 23 64 65 |ENERATIN|GCFM.#de|
|00004190| 66 69 6e 65 20 4e 65 77 | 54 43 50 4e 6f 74 69 66 |fine New|TCPNotif|
|000041a0| 79 50 72 6f 63 28 75 73 | 65 72 52 6f 75 74 69 6e |yProc(us|erRoutin|
|000041b0| 65 29 09 09 5c 0d 09 09 | 28 54 43 50 4e 6f 74 69 |e)..\...|(TCPNoti|
|000041c0| 66 79 55 50 50 29 20 4e | 65 77 52 6f 75 74 69 6e |fyUPP) N|ewRoutin|
|000041d0| 65 44 65 73 63 72 69 70 | 74 6f 72 28 28 50 72 6f |eDescrip|tor((Pro|
|000041e0| 63 50 74 72 29 28 75 73 | 65 72 52 6f 75 74 69 6e |cPtr)(us|erRoutin|
|000041f0| 65 29 2c 20 75 70 70 54 | 43 50 4e 6f 74 69 66 79 |e), uppT|CPNotify|
|00004200| 50 72 6f 63 49 6e 66 6f | 2c 20 47 65 74 43 75 72 |ProcInfo|, GetCur|
|00004210| 72 65 6e 74 41 72 63 68 | 69 74 65 63 74 75 72 65 |rentArch|itecture|
|00004220| 28 29 29 0d 23 65 6c 73 | 65 0d 23 64 65 66 69 6e |()).#els|e.#defin|
|00004230| 65 20 4e 65 77 54 43 50 | 4e 6f 74 69 66 79 50 72 |e NewTCP|NotifyPr|
|00004240| 6f 63 28 75 73 65 72 52 | 6f 75 74 69 6e 65 29 09 |oc(userR|outine).|
|00004250| 09 5c 0d 09 09 28 28 54 | 43 50 4e 6f 74 69 66 79 |.\...((T|CPNotify|
|00004260| 55 50 50 29 20 28 75 73 | 65 72 52 6f 75 74 69 6e |UPP) (us|erRoutin|
|00004270| 65 29 29 0d 23 65 6e 64 | 69 66 0d 0d 23 69 66 20 |e)).#end|if..#if |
|00004280| 47 45 4e 45 52 41 54 49 | 4e 47 43 46 4d 0d 23 64 |GENERATI|NGCFM.#d|
|00004290| 65 66 69 6e 65 20 43 61 | 6c 6c 54 43 50 4e 6f 74 |efine Ca|llTCPNot|
|000042a0| 69 66 79 50 72 6f 63 28 | 75 73 65 72 52 6f 75 74 |ifyProc(|userRout|
|000042b0| 69 6e 65 2c 20 74 63 70 | 53 74 72 65 61 6d 2c 20 |ine, tcp|Stream, |
|000042c0| 65 76 65 6e 74 43 6f 64 | 65 2c 20 75 73 65 72 44 |eventCod|e, userD|
|000042d0| 61 74 61 50 74 72 2c 20 | 74 65 72 6d 69 6e 52 65 |ataPtr, |terminRe|
|000042e0| 61 73 6f 6e 2c 20 69 63 | 6d 70 4d 73 67 29 09 09 |ason, ic|mpMsg)..|
|000042f0| 5c 0d 09 09 43 61 6c 6c | 55 6e 69 76 65 72 73 61 |\...Call|Universa|
|00004300| 6c 50 72 6f 63 28 28 55 | 6e 69 76 65 72 73 61 6c |lProc((U|niversal|
|00004310| 50 72 6f 63 50 74 72 29 | 28 75 73 65 72 52 6f 75 |ProcPtr)|(userRou|
|00004320| 74 69 6e 65 29 2c 20 75 | 70 70 54 43 50 4e 6f 74 |tine), u|ppTCPNot|
|00004330| 69 66 79 50 72 6f 63 49 | 6e 66 6f 2c 20 28 74 63 |ifyProcI|nfo, (tc|
|00004340| 70 53 74 72 65 61 6d 29 | 2c 20 28 65 76 65 6e 74 |pStream)|, (event|
|00004350| 43 6f 64 65 29 2c 20 28 | 75 73 65 72 44 61 74 61 |Code), (|userData|
|00004360| 50 74 72 29 2c 20 28 74 | 65 72 6d 69 6e 52 65 61 |Ptr), (t|erminRea|
|00004370| 73 6f 6e 29 2c 20 28 69 | 63 6d 70 4d 73 67 29 29 |son), (i|cmpMsg))|
|00004380| 0d 23 65 6c 73 65 0d 23 | 64 65 66 69 6e 65 20 43 |.#else.#|define C|
|00004390| 61 6c 6c 54 43 50 4e 6f | 74 69 66 79 50 72 6f 63 |allTCPNo|tifyProc|
|000043a0| 28 75 73 65 72 52 6f 75 | 74 69 6e 65 2c 20 74 63 |(userRou|tine, tc|
|000043b0| 70 53 74 72 65 61 6d 2c | 20 65 76 65 6e 74 43 6f |pStream,| eventCo|
|000043c0| 64 65 2c 20 75 73 65 72 | 44 61 74 61 50 74 72 2c |de, user|DataPtr,|
|000043d0| 20 74 65 72 6d 69 6e 52 | 65 61 73 6f 6e 2c 20 69 | terminR|eason, i|
|000043e0| 63 6d 70 4d 73 67 29 09 | 09 5c 0d 09 09 28 2a 28 |cmpMsg).|.\...(*(|
|000043f0| 75 73 65 72 52 6f 75 74 | 69 6e 65 29 29 28 28 74 |userRout|ine))((t|
|00004400| 63 70 53 74 72 65 61 6d | 29 2c 20 28 65 76 65 6e |cpStream|), (even|
|00004410| 74 43 6f 64 65 29 2c 20 | 28 75 73 65 72 44 61 74 |tCode), |(userDat|
|00004420| 61 50 74 72 29 2c 20 28 | 74 65 72 6d 69 6e 52 65 |aPtr), (|terminRe|
|00004430| 61 73 6f 6e 29 2c 20 28 | 69 63 6d 70 4d 73 67 29 |ason), (|icmpMsg)|
|00004440| 29 0d 23 65 6e 64 69 66 | 0d 0d 74 79 70 65 64 65 |).#endif|..typede|
|00004450| 66 20 75 6e 73 69 67 6e | 65 64 20 73 68 6f 72 74 |f unsign|ed short|
|00004460| 20 74 63 70 5f 70 6f 72 | 74 3b 0d 0d 23 69 66 20 | tcp_por|t;..#if |
|00004470| 4f 4c 44 52 4f 55 54 49 | 4e 45 4e 41 4d 45 53 09 |OLDROUTI|NENAMES.|
|00004480| 09 09 09 09 09 2f 2f 20 | a5 a5 20 45 53 20 61 64 |.....// |.. ES ad|
|00004490| 64 69 74 69 6f 6e 0d 74 | 79 70 65 64 65 66 20 75 |dition.t|ypedef u|
|000044a0| 6e 73 69 67 6e 65 64 20 | 63 68 61 72 20 62 79 74 |nsigned |char byt|
|000044b0| 65 3b 0d 23 65 6e 64 69 | 66 20 4f 4c 44 52 4f 55 |e;.#endi|f OLDROU|
|000044c0| 54 49 4e 45 4e 41 4d 45 | 53 0d 0d 0d 2f 2a 20 56 |TINENAME|S.../* V|
|000044d0| 61 6c 69 64 69 74 79 46 | 6c 61 67 73 20 2a 2f 0d |alidityF|lags */.|
|000044e0| 0d 65 6e 75 6d 20 7b 0d | 09 74 69 6d 65 6f 75 74 |.enum {.|.timeout|
|000044f0| 56 61 6c 75 65 09 09 09 | 09 3d 20 30 78 38 30 2c |Value...|.= 0x80,|
|00004500| 0d 09 74 69 6d 65 6f 75 | 74 41 63 74 69 6f 6e 09 |..timeou|tAction.|
|00004510| 09 09 09 3d 20 30 78 34 | 30 2c 0d 09 74 79 70 65 |...= 0x4|0,..type|
|00004520| 4f 66 53 65 72 76 69 63 | 65 09 09 09 09 3d 20 30 |OfServic|e....= 0|
|00004530| 78 32 30 2c 0d 09 70 72 | 65 63 65 64 65 6e 63 65 |x20,..pr|ecedence|
|00004540| 09 09 09 09 09 3d 20 30 | 78 31 30 0d 7d 3b 0d 0d |.....= 0|x10.};..|
|00004550| 2f 2a 20 54 4f 53 46 6c | 61 67 73 20 2a 2f 0d 65 |/* TOSFl|ags */.e|
|00004560| 6e 75 6d 20 7b 0d 09 6c | 6f 77 44 65 6c 61 79 09 |num {..l|owDelay.|
|00004570| 09 09 09 09 3d 20 30 78 | 30 31 2c 0d 09 74 68 72 |....= 0x|01,..thr|
|00004580| 6f 75 67 68 50 75 74 09 | 09 09 09 09 3d 20 30 78 |oughPut.|....= 0x|
|00004590| 30 32 2c 0d 09 72 65 6c | 69 61 62 69 6c 69 74 79 |02,..rel|iability|
|000045a0| 09 09 09 09 09 3d 20 30 | 78 30 34 0d 7d 3b 0d 0d |.....= 0|x04.};..|
|000045b0| 73 74 72 75 63 74 20 54 | 43 50 43 72 65 61 74 65 |struct T|CPCreate|
|000045c0| 50 42 20 7b 0d 09 50 74 | 72 09 09 09 09 09 09 09 |PB {..Pt|r.......|
|000045d0| 09 72 63 76 42 75 66 66 | 3b 0d 09 75 6e 73 69 67 |.rcvBuff|;..unsig|
|000045e0| 6e 65 64 20 6c 6f 6e 67 | 09 09 09 09 09 72 63 76 |ned long|.....rcv|
|000045f0| 42 75 66 66 4c 65 6e 3b | 0d 09 54 43 50 4e 6f 74 |BuffLen;|..TCPNot|
|00004600| 69 66 79 55 50 50 09 09 | 09 09 09 6e 6f 74 69 66 |ifyUPP..|...notif|
|00004610| 79 50 72 6f 63 3b 0d 09 | 50 74 72 09 09 09 09 09 |yProc;..|Ptr.....|
|00004620| 09 09 09 75 73 65 72 44 | 61 74 61 50 74 72 3b 0d |...userD|ataPtr;.|
|00004630| 7d 3b 0d 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |};.typed|ef struc|
|00004640| 74 20 54 43 50 43 72 65 | 61 74 65 50 42 20 54 43 |t TCPCre|atePB TC|
|00004650| 50 43 72 65 61 74 65 50 | 42 3b 0d 0d 73 74 72 75 |PCreateP|B;..stru|
|00004660| 63 74 20 54 43 50 4f 70 | 65 6e 50 42 20 7b 0d 09 |ct TCPOp|enPB {..|
|00004670| 53 49 6e 74 38 09 09 09 | 09 09 09 09 75 6c 70 54 |SInt8...|....ulpT|
|00004680| 69 6d 65 6f 75 74 56 61 | 6c 75 65 3b 0d 09 53 49 |imeoutVa|lue;..SI|
|00004690| 6e 74 38 09 09 09 09 09 | 09 09 75 6c 70 54 69 6d |nt8.....|..ulpTim|
|000046a0| 65 6f 75 74 41 63 74 69 | 6f 6e 3b 0d 09 53 49 6e |eoutActi|on;..SIn|
|000046b0| 74 38 09 09 09 09 09 09 | 09 76 61 6c 69 64 69 74 |t8......|.validit|
|000046c0| 79 46 6c 61 67 73 3b 0d | 09 53 49 6e 74 38 09 09 |yFlags;.|.SInt8..|
|000046d0| 09 09 09 09 09 63 6f 6d | 6d 61 6e 64 54 69 6d 65 |.....com|mandTime|
|000046e0| 6f 75 74 56 61 6c 75 65 | 3b 0d 09 69 70 5f 61 64 |outValue|;..ip_ad|
|000046f0| 64 72 09 09 09 09 09 09 | 09 72 65 6d 6f 74 65 48 |dr......|.remoteH|
|00004700| 6f 73 74 3b 0d 09 74 63 | 70 5f 70 6f 72 74 09 09 |ost;..tc|p_port..|
|00004710| 09 09 09 09 72 65 6d 6f | 74 65 50 6f 72 74 3b 0d |....remo|tePort;.|
|00004720| 09 69 70 5f 61 64 64 72 | 09 09 09 09 09 09 09 6c |.ip_addr|.......l|
|00004730| 6f 63 61 6c 48 6f 73 74 | 3b 0d 09 74 63 70 5f 70 |ocalHost|;..tcp_p|
|00004740| 6f 72 74 09 09 09 09 09 | 09 6c 6f 63 61 6c 50 6f |ort.....|.localPo|
|00004750| 72 74 3b 0d 09 53 49 6e | 74 38 09 09 09 09 09 09 |rt;..SIn|t8......|
|00004760| 09 74 6f 73 46 6c 61 67 | 73 3b 0d 09 53 49 6e 74 |.tosFlag|s;..SInt|
|00004770| 38 09 09 09 09 09 09 09 | 70 72 65 63 65 64 65 6e |8.......|preceden|
|00004780| 63 65 3b 0d 09 42 6f 6f | 6c 65 61 6e 09 09 09 09 |ce;..Boo|lean....|
|00004790| 09 09 09 64 6f 6e 74 46 | 72 61 67 3b 0d 09 53 49 |...dontF|rag;..SI|
|000047a0| 6e 74 38 09 09 09 09 09 | 09 09 74 69 6d 65 54 6f |nt8.....|..timeTo|
|000047b0| 4c 69 76 65 3b 0d 09 53 | 49 6e 74 38 09 09 09 09 |Live;..S|Int8....|
|000047c0| 09 09 09 73 65 63 75 72 | 69 74 79 3b 0d 09 53 49 |...secur|ity;..SI|
|000047d0| 6e 74 38 09 09 09 09 09 | 09 09 6f 70 74 69 6f 6e |nt8.....|..option|
|000047e0| 43 6e 74 3b 0d 09 53 49 | 6e 74 38 09 09 09 09 09 |Cnt;..SI|nt8.....|
|000047f0| 09 09 6f 70 74 69 6f 6e | 73 5b 34 30 5d 3b 0d 09 |..option|s[40];..|
|00004800| 50 74 72 09 09 09 09 09 | 09 09 09 75 73 65 72 44 |Ptr.....|...userD|
|00004810| 61 74 61 50 74 72 3b 0d | 7d 3b 0d 74 79 70 65 64 |ataPtr;.|};.typed|
|00004820| 65 66 20 73 74 72 75 63 | 74 20 54 43 50 4f 70 65 |ef struc|t TCPOpe|
|00004830| 6e 50 42 20 54 43 50 4f | 70 65 6e 50 42 3b 0d 0d |nPB TCPO|penPB;..|
|00004840| 73 74 72 75 63 74 20 54 | 43 50 53 65 6e 64 50 42 |struct T|CPSendPB|
|00004850| 20 7b 0d 09 53 49 6e 74 | 38 09 09 09 09 09 09 09 | {..SInt|8.......|
|00004860| 75 6c 70 54 69 6d 65 6f | 75 74 56 61 6c 75 65 3b |ulpTimeo|utValue;|
|00004870| 0d 09 53 49 6e 74 38 09 | 09 09 09 09 09 09 75 6c |..SInt8.|......ul|
|00004880| 70 54 69 6d 65 6f 75 74 | 41 63 74 69 6f 6e 3b 0d |pTimeout|Action;.|
|00004890| 09 53 49 6e 74 38 09 09 | 09 09 09 09 09 76 61 6c |.SInt8..|.....val|
|000048a0| 69 64 69 74 79 46 6c 61 | 67 73 3b 0d 09 42 6f 6f |idityFla|gs;..Boo|
|000048b0| 6c 65 61 6e 09 09 09 09 | 09 09 09 70 75 73 68 46 |lean....|...pushF|
|000048c0| 6c 61 67 3b 0d 09 42 6f | 6f 6c 65 61 6e 09 09 09 |lag;..Bo|olean...|
|000048d0| 09 09 09 09 75 72 67 65 | 6e 74 46 6c 61 67 3b 0d |....urge|ntFlag;.|
|000048e0| 09 55 49 6e 74 38 09 09 | 09 09 09 09 09 66 69 6c |.UInt8..|.....fil|
|000048f0| 6c 65 72 3b 09 09 09 09 | 09 09 2f 2a 20 46 69 6c |ler;....|../* Fil|
|00004900| 6c 65 72 20 66 6f 72 20 | 70 72 6f 70 65 72 20 62 |ler for |proper b|
|00004910| 79 74 65 20 61 6c 69 67 | 6e 6d 65 6e 74 09 20 2a |yte alig|nment. *|
|00004920| 2f 0d 09 50 74 72 09 09 | 09 09 09 09 09 09 77 64 |/..Ptr..|......wd|
|00004930| 73 50 74 72 3b 0d 09 75 | 6e 73 69 67 6e 65 64 20 |sPtr;..u|nsigned |
|00004940| 6c 6f 6e 67 09 09 09 09 | 09 73 65 6e 64 46 72 65 |long....|.sendFre|
|00004950| 65 3b 0d 09 75 6e 73 69 | 67 6e 65 64 20 73 68 6f |e;..unsi|gned sho|
|00004960| 72 74 09 09 09 09 09 73 | 65 6e 64 4c 65 6e 67 74 |rt.....s|endLengt|
|00004970| 68 3b 0d 09 50 74 72 09 | 09 09 09 09 09 09 09 75 |h;..Ptr.|.......u|
|00004980| 73 65 72 44 61 74 61 50 | 74 72 3b 0d 7d 3b 0d 74 |serDataP|tr;.};.t|
|00004990| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 54 43 |ypedef s|truct TC|
|000049a0| 50 53 65 6e 64 50 42 20 | 54 43 50 53 65 6e 64 50 |PSendPB |TCPSendP|
|000049b0| 42 3b 0d 0d 2f 2a 20 66 | 6f 72 20 72 65 63 65 69 |B;../* f|or recei|
|000049c0| 76 65 20 61 6e 64 20 72 | 65 74 75 72 6e 20 72 63 |ve and r|eturn rc|
|000049d0| 76 20 62 75 66 66 20 63 | 61 6c 6c 73 20 2a 2f 0d |v buff c|alls */.|
|000049e0| 73 74 72 75 63 74 20 54 | 43 50 52 65 63 65 69 76 |struct T|CPReceiv|
|000049f0| 65 50 42 20 7b 0d 09 53 | 49 6e 74 38 09 09 09 09 |ePB {..S|Int8....|
|00004a00| 09 09 09 63 6f 6d 6d 61 | 6e 64 54 69 6d 65 6f 75 |...comma|ndTimeou|
|00004a10| 74 56 61 6c 75 65 3b 0d | 09 53 49 6e 74 38 09 09 |tValue;.|.SInt8..|
|00004a20| 09 09 09 09 09 66 69 6c | 6c 65 72 3b 0d 09 42 6f |.....fil|ler;..Bo|
|00004a30| 6f 6c 65 61 6e 09 09 09 | 09 09 09 09 6d 61 72 6b |olean...|....mark|
|00004a40| 46 6c 61 67 3b 0d 09 42 | 6f 6f 6c 65 61 6e 09 09 |Flag;..B|oolean..|
|00004a50| 09 09 09 09 09 75 72 67 | 65 6e 74 46 6c 61 67 3b |.....urg|entFlag;|
|00004a60| 0d 09 50 74 72 09 09 09 | 09 09 09 09 09 72 63 76 |..Ptr...|.....rcv|
|00004a70| 42 75 66 66 3b 0d 09 75 | 6e 73 69 67 6e 65 64 20 |Buff;..u|nsigned |
|00004a80| 73 68 6f 72 74 09 09 09 | 09 09 72 63 76 42 75 66 |short...|..rcvBuf|
|00004a90| 66 4c 65 6e 3b 0d 09 50 | 74 72 09 09 09 09 09 09 |fLen;..P|tr......|
|00004aa0| 09 09 72 64 73 50 74 72 | 3b 0d 09 75 6e 73 69 67 |..rdsPtr|;..unsig|
|00004ab0| 6e 65 64 20 73 68 6f 72 | 74 09 09 09 09 09 72 64 |ned shor|t.....rd|
|00004ac0| 73 4c 65 6e 67 74 68 3b | 0d 09 75 6e 73 69 67 6e |sLength;|..unsign|
|00004ad0| 65 64 20 73 68 6f 72 74 | 09 09 09 09 09 73 65 63 |ed short|.....sec|
|00004ae0| 6f 6e 64 54 69 6d 65 53 | 74 61 6d 70 3b 0d 09 50 |ondTimeS|tamp;..P|
|00004af0| 74 72 09 09 09 09 09 09 | 09 09 75 73 65 72 44 61 |tr......|..userDa|
|00004b00| 74 61 50 74 72 3b 0d 7d | 3b 0d 74 79 70 65 64 65 |taPtr;.}|;.typede|
|00004b10| 66 20 73 74 72 75 63 74 | 20 54 43 50 52 65 63 65 |f struct| TCPRece|
|00004b20| 69 76 65 50 42 20 54 43 | 50 52 65 63 65 69 76 65 |ivePB TC|PReceive|
|00004b30| 50 42 3b 0d 0d 73 74 72 | 75 63 74 20 54 43 50 43 |PB;..str|uct TCPC|
|00004b40| 6c 6f 73 65 50 42 20 7b | 0d 09 53 49 6e 74 38 09 |losePB {|..SInt8.|
|00004b50| 09 09 09 09 09 09 75 6c | 70 54 69 6d 65 6f 75 74 |......ul|pTimeout|
|00004b60| 56 61 6c 75 65 3b 0d 09 | 53 49 6e 74 38 09 09 09 |Value;..|SInt8...|
|00004b70| 09 09 09 09 75 6c 70 54 | 69 6d 65 6f 75 74 41 63 |....ulpT|imeoutAc|
|00004b80| 74 69 6f 6e 3b 0d 09 53 | 49 6e 74 38 09 09 09 09 |tion;..S|Int8....|
|00004b90| 09 09 09 76 61 6c 69 64 | 69 74 79 46 6c 61 67 73 |...valid|ityFlags|
|00004ba0| 3b 0d 09 55 49 6e 74 38 | 09 09 09 09 09 09 09 66 |;..UInt8|.......f|
|00004bb0| 69 6c 6c 65 72 3b 09 09 | 09 09 09 09 2f 2a 20 46 |iller;..|..../* F|
|00004bc0| 69 6c 6c 65 72 20 66 6f | 72 20 70 72 6f 70 65 72 |iller fo|r proper|
|00004bd0| 20 62 79 74 65 20 61 6c | 69 67 6e 6d 65 6e 74 09 | byte al|ignment.|
|00004be0| 20 2a 2f 0d 09 50 74 72 | 09 09 09 09 09 09 09 09 | */..Ptr|........|
|00004bf0| 75 73 65 72 44 61 74 61 | 50 74 72 3b 0d 7d 3b 0d |userData|Ptr;.};.|
|00004c00| 74 79 70 65 64 65 66 20 | 73 74 72 75 63 74 20 54 |typedef |struct T|
|00004c10| 43 50 43 6c 6f 73 65 50 | 42 20 54 43 50 43 6c 6f |CPCloseP|B TCPClo|
|00004c20| 73 65 50 42 3b 0d 0d 73 | 74 72 75 63 74 20 48 69 |sePB;..s|truct Hi|
|00004c30| 73 74 6f 42 75 63 6b 65 | 74 20 7b 0d 09 75 6e 73 |stoBucke|t {..uns|
|00004c40| 69 67 6e 65 64 20 73 68 | 6f 72 74 09 09 09 09 09 |igned sh|ort.....|
|00004c50| 76 61 6c 75 65 3b 0d 09 | 75 6e 73 69 67 6e 65 64 |value;..|unsigned|
|00004c60| 20 6c 6f 6e 67 09 09 09 | 09 09 63 6f 75 6e 74 65 | long...|..counte|
|00004c70| 72 3b 0d 7d 3b 0d 74 79 | 70 65 64 65 66 20 73 74 |r;.};.ty|pedef st|
|00004c80| 72 75 63 74 20 48 69 73 | 74 6f 42 75 63 6b 65 74 |ruct His|toBucket|
|00004c90| 20 48 69 73 74 6f 42 75 | 63 6b 65 74 3b 0d 0d 0d | HistoBu|cket;...|
|00004ca0| 65 6e 75 6d 20 7b 0d 09 | 4e 75 6d 4f 66 48 69 73 |enum {..|NumOfHis|
|00004cb0| 74 6f 42 75 63 6b 65 74 | 73 09 09 09 3d 20 37 0d |toBucket|s...= 7.|
|00004cc0| 7d 3b 0d 0d 73 74 72 75 | 63 74 20 54 43 50 43 6f |};..stru|ct TCPCo|
|00004cd0| 6e 6e 65 63 74 69 6f 6e | 53 74 61 74 73 20 7b 0d |nnection|Stats {.|
|00004ce0| 09 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 09 09 |.unsigne|d long..|
|00004cf0| 09 09 09 64 61 74 61 50 | 6b 74 73 52 63 76 64 3b |...dataP|ktsRcvd;|
|00004d00| 0d 09 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 09 |..unsign|ed long.|
|00004d10| 09 09 09 09 64 61 74 61 | 50 6b 74 73 53 65 6e 74 |....data|PktsSent|
|00004d20| 3b 0d 09 75 6e 73 69 67 | 6e 65 64 20 6c 6f 6e 67 |;..unsig|ned long|
|00004d30| 09 09 09 09 09 64 61 74 | 61 50 6b 74 73 52 65 73 |.....dat|aPktsRes|
|00004d40| 65 6e 74 3b 0d 09 75 6e | 73 69 67 6e 65 64 20 6c |ent;..un|signed l|
|00004d50| 6f 6e 67 09 09 09 09 09 | 62 79 74 65 73 52 63 76 |ong.....|bytesRcv|
|00004d60| 64 3b 0d 09 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e |d;..unsi|gned lon|
|00004d70| 67 09 09 09 09 09 62 79 | 74 65 73 52 63 76 64 44 |g.....by|tesRcvdD|
|00004d80| 75 70 3b 0d 09 75 6e 73 | 69 67 6e 65 64 20 6c 6f |up;..uns|igned lo|
|00004d90| 6e 67 09 09 09 09 09 62 | 79 74 65 73 52 63 76 64 |ng.....b|ytesRcvd|
|00004da0| 50 61 73 74 57 69 6e 64 | 6f 77 3b 0d 09 75 6e 73 |PastWind|ow;..uns|
|00004db0| 69 67 6e 65 64 20 6c 6f | 6e 67 09 09 09 09 09 62 |igned lo|ng.....b|
|00004dc0| 79 74 65 73 53 65 6e 74 | 3b 0d 09 75 6e 73 69 67 |ytesSent|;..unsig|
|00004dd0| 6e 65 64 20 6c 6f 6e 67 | 09 09 09 09 09 62 79 74 |ned long|.....byt|
|00004de0| 65 73 52 65 73 65 6e 74 | 3b 0d 09 75 6e 73 69 67 |esResent|;..unsig|
|00004df0| 6e 65 64 20 73 68 6f 72 | 74 09 09 09 09 09 6e 75 |ned shor|t.....nu|
|00004e00| 6d 48 69 73 74 6f 42 75 | 63 6b 65 74 73 3b 0d 09 |mHistoBu|ckets;..|
|00004e10| 73 74 72 75 63 74 20 48 | 69 73 74 6f 42 75 63 6b |struct H|istoBuck|
|00004e20| 65 74 09 09 09 09 73 65 | 6e 74 53 69 7a 65 48 69 |et....se|ntSizeHi|
|00004e30| 73 74 6f 5b 4e 75 6d 4f | 66 48 69 73 74 6f 42 75 |sto[NumO|fHistoBu|
|00004e40| 63 6b 65 74 73 5d 3b 0d | 09 75 6e 73 69 67 6e 65 |ckets];.|.unsigne|
|00004e50| 64 20 73 68 6f 72 74 09 | 09 09 09 09 6c 61 73 74 |d short.|....last|
|00004e60| 52 54 54 3b 0d 09 75 6e | 73 69 67 6e 65 64 20 73 |RTT;..un|signed s|
|00004e70| 68 6f 72 74 09 09 09 09 | 09 74 6d 72 53 52 54 54 |hort....|.tmrSRTT|
|00004e80| 3b 0d 09 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 |;..unsig|ned shor|
|00004e90| 74 09 09 09 09 09 72 74 | 74 56 61 72 69 61 6e 63 |t.....rt|tVarianc|
|00004ea0| 65 3b 0d 09 75 6e 73 69 | 67 6e 65 64 20 73 68 6f |e;..unsi|gned sho|
|00004eb0| 72 74 09 09 09 09 09 74 | 6d 72 52 54 4f 3b 0d 09 |rt.....t|mrRTO;..|
|00004ec0| 53 49 6e 74 38 09 09 09 | 09 09 09 09 73 65 6e 64 |SInt8...|....send|
|00004ed0| 54 72 69 65 73 3b 0d 09 | 53 49 6e 74 38 09 09 09 |Tries;..|SInt8...|
|00004ee0| 09 09 09 09 73 6f 75 72 | 63 68 51 75 65 6e 63 68 |....sour|chQuench|
|00004ef0| 52 63 76 64 3b 0d 7d 3b | 0d 74 79 70 65 64 65 66 |Rcvd;.};|.typedef|
|00004f00| 20 73 74 72 75 63 74 20 | 54 43 50 43 6f 6e 6e 65 | struct |TCPConne|
|00004f10| 63 74 69 6f 6e 53 74 61 | 74 73 20 54 43 50 43 6f |ctionSta|ts TCPCo|
|00004f20| 6e 6e 65 63 74 69 6f 6e | 53 74 61 74 73 3b 0d 0d |nnection|Stats;..|
|00004f30| 73 74 72 75 63 74 20 54 | 43 50 53 74 61 74 75 73 |struct T|CPStatus|
|00004f40| 50 42 20 7b 0d 09 53 49 | 6e 74 38 09 09 09 09 09 |PB {..SI|nt8.....|
|00004f50| 09 09 75 6c 70 54 69 6d | 65 6f 75 74 56 61 6c 75 |..ulpTim|eoutValu|
|00004f60| 65 3b 0d 09 53 49 6e 74 | 38 09 09 09 09 09 09 09 |e;..SInt|8.......|
|00004f70| 75 6c 70 54 69 6d 65 6f | 75 74 41 63 74 69 6f 6e |ulpTimeo|utAction|
|00004f80| 3b 0d 09 6c 6f 6e 67 09 | 09 09 09 09 09 09 75 6e |;..long.|......un|
|00004f90| 75 73 65 64 3b 0d 09 69 | 70 5f 61 64 64 72 09 09 |used;..i|p_addr..|
|00004fa0| 09 09 09 09 09 72 65 6d | 6f 74 65 48 6f 73 74 3b |.....rem|oteHost;|
|00004fb0| 0d 09 74 63 70 5f 70 6f | 72 74 09 09 09 09 09 09 |..tcp_po|rt......|
|00004fc0| 72 65 6d 6f 74 65 50 6f | 72 74 3b 0d 09 69 70 5f |remotePo|rt;..ip_|
|00004fd0| 61 64 64 72 09 09 09 09 | 09 09 09 6c 6f 63 61 6c |addr....|...local|
|00004fe0| 48 6f 73 74 3b 0d 09 74 | 63 70 5f 70 6f 72 74 09 |Host;..t|cp_port.|
|00004ff0| 09 09 09 09 09 6c 6f 63 | 61 6c 50 6f 72 74 3b 0d |.....loc|alPort;.|
|00005000| 09 53 49 6e 74 38 09 09 | 09 09 09 09 09 74 6f 73 |.SInt8..|.....tos|
|00005010| 46 6c 61 67 73 3b 0d 09 | 53 49 6e 74 38 09 09 09 |Flags;..|SInt8...|
|00005020| 09 09 09 09 70 72 65 63 | 65 64 65 6e 63 65 3b 0d |....prec|edence;.|
|00005030| 09 53 49 6e 74 38 09 09 | 09 09 09 09 09 63 6f 6e |.SInt8..|.....con|
|00005040| 6e 65 63 74 69 6f 6e 53 | 74 61 74 65 3b 0d 09 55 |nectionS|tate;..U|
|00005050| 49 6e 74 38 09 09 09 09 | 09 09 09 66 69 6c 6c 65 |Int8....|...fille|
|00005060| 72 3b 09 09 09 09 09 09 | 2f 2a 20 46 69 6c 6c 65 |r;......|/* Fille|
|00005070| 72 20 66 6f 72 20 70 72 | 6f 70 65 72 20 62 79 74 |r for pr|oper byt|
|00005080| 65 20 61 6c 69 67 6e 6d | 65 6e 74 09 20 2a 2f 0d |e alignm|ent. */.|
|00005090| 09 75 6e 73 69 67 6e 65 | 64 20 73 68 6f 72 74 09 |.unsigne|d short.|
|000050a0| 09 09 09 09 73 65 6e 64 | 57 69 6e 64 6f 77 3b 0d |....send|Window;.|
|000050b0| 09 75 6e 73 69 67 6e 65 | 64 20 73 68 6f 72 74 09 |.unsigne|d short.|
|000050c0| 09 09 09 09 72 63 76 57 | 69 6e 64 6f 77 3b 0d 09 |....rcvW|indow;..|
|000050d0| 75 6e 73 69 67 6e 65 64 | 20 73 68 6f 72 74 09 09 |unsigned| short..|
|000050e0| 09 09 09 61 6d 74 55 6e | 61 63 6b 65 64 44 61 74 |...amtUn|ackedDat|
|000050f0| 61 3b 0d 09 75 6e 73 69 | 67 6e 65 64 20 73 68 6f |a;..unsi|gned sho|
|00005100| 72 74 09 09 09 09 09 61 | 6d 74 55 6e 72 65 61 64 |rt.....a|mtUnread|
|00005110| 44 61 74 61 3b 0d 09 50 | 74 72 09 09 09 09 09 09 |Data;..P|tr......|
|00005120| 09 09 73 65 63 75 72 69 | 74 79 4c 65 76 65 6c 50 |..securi|tyLevelP|
|00005130| 74 72 3b 0d 09 75 6e 73 | 69 67 6e 65 64 20 6c 6f |tr;..uns|igned lo|
|00005140| 6e 67 09 09 09 09 09 73 | 65 6e 64 55 6e 61 63 6b |ng.....s|endUnack|
|00005150| 65 64 3b 0d 09 75 6e 73 | 69 67 6e 65 64 20 6c 6f |ed;..uns|igned lo|
|00005160| 6e 67 09 09 09 09 09 73 | 65 6e 64 4e 65 78 74 3b |ng.....s|endNext;|
|00005170| 0d 09 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 09 |..unsign|ed long.|
|00005180| 09 09 09 09 63 6f 6e 67 | 65 73 74 69 6f 6e 57 69 |....cong|estionWi|
|00005190| 6e 64 6f 77 3b 0d 09 75 | 6e 73 69 67 6e 65 64 20 |ndow;..u|nsigned |
|000051a0| 6c 6f 6e 67 09 09 09 09 | 09 72 63 76 4e 65 78 74 |long....|.rcvNext|
|000051b0| 3b 0d 09 75 6e 73 69 67 | 6e 65 64 20 6c 6f 6e 67 |;..unsig|ned long|
|000051c0| 09 09 09 09 09 73 72 74 | 74 3b 0d 09 75 6e 73 69 |.....srt|t;..unsi|
|000051d0| 67 6e 65 64 20 6c 6f 6e | 67 09 09 09 09 09 6c 61 |gned lon|g.....la|
|000051e0| 73 74 52 54 54 3b 0d 09 | 75 6e 73 69 67 6e 65 64 |stRTT;..|unsigned|
|000051f0| 20 6c 6f 6e 67 09 09 09 | 09 09 73 65 6e 64 4d 61 | long...|..sendMa|
|00005200| 78 53 65 67 53 69 7a 65 | 3b 0d 09 73 74 72 75 63 |xSegSize|;..struc|
|00005210| 74 20 54 43 50 43 6f 6e | 6e 65 63 74 69 6f 6e 53 |t TCPCon|nectionS|
|00005220| 74 61 74 73 09 09 2a 63 | 6f 6e 6e 53 74 61 74 50 |tats..*c|onnStatP|
|00005230| 74 72 3b 0d 09 50 74 72 | 09 09 09 09 09 09 09 09 |tr;..Ptr|........|
|00005240| 75 73 65 72 44 61 74 61 | 50 74 72 3b 0d 7d 3b 0d |userData|Ptr;.};.|
|00005250| 74 79 70 65 64 65 66 20 | 73 74 72 75 63 74 20 54 |typedef |struct T|
|00005260| 43 50 53 74 61 74 75 73 | 50 42 20 54 43 50 53 74 |CPStatus|PB TCPSt|
|00005270| 61 74 75 73 50 42 3b 0d | 0d 73 74 72 75 63 74 20 |atusPB;.|.struct |
|00005280| 54 43 50 41 62 6f 72 74 | 50 42 20 7b 0d 09 50 74 |TCPAbort|PB {..Pt|
|00005290| 72 09 09 09 09 09 09 09 | 09 75 73 65 72 44 61 74 |r.......|.userDat|
|000052a0| 61 50 74 72 3b 0d 7d 3b | 0d 74 79 70 65 64 65 66 |aPtr;.};|.typedef|
|000052b0| 20 73 74 72 75 63 74 20 | 54 43 50 41 62 6f 72 74 | struct |TCPAbort|
|000052c0| 50 42 20 54 43 50 41 62 | 6f 72 74 50 42 3b 0d 0d |PB TCPAb|ortPB;..|
|000052d0| 73 74 72 75 63 74 20 54 | 43 50 50 61 72 61 6d 20 |struct T|CPParam |
|000052e0| 7b 0d 09 75 6e 73 69 67 | 6e 65 64 20 6c 6f 6e 67 |{..unsig|ned long|
|000052f0| 09 09 09 09 09 74 63 70 | 52 74 6f 41 3b 0d 09 75 |.....tcp|RtoA;..u|
|00005300| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 09 09 09 09 |nsigned |long....|
|00005310| 09 74 63 70 52 74 6f 4d | 69 6e 3b 0d 09 75 6e 73 |.tcpRtoM|in;..uns|
|00005320| 69 67 6e 65 64 20 6c 6f | 6e 67 09 09 09 09 09 74 |igned lo|ng.....t|
|00005330| 63 70 52 74 6f 4d 61 78 | 3b 0d 09 75 6e 73 69 67 |cpRtoMax|;..unsig|
|00005340| 6e 65 64 20 6c 6f 6e 67 | 09 09 09 09 09 74 63 70 |ned long|.....tcp|
|00005350| 4d 61 78 53 65 67 53 69 | 7a 65 3b 0d 09 75 6e 73 |MaxSegSi|ze;..uns|
|00005360| 69 67 6e 65 64 20 6c 6f | 6e 67 09 09 09 09 09 74 |igned lo|ng.....t|
|00005370| 63 70 4d 61 78 43 6f 6e | 6e 3b 0d 09 75 6e 73 69 |cpMaxCon|n;..unsi|
|00005380| 67 6e 65 64 20 6c 6f 6e | 67 09 09 09 09 09 74 63 |gned lon|g.....tc|
|00005390| 70 4d 61 78 57 69 6e 64 | 6f 77 3b 0d 7d 3b 0d 74 |pMaxWind|ow;.};.t|
|000053a0| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 54 43 |ypedef s|truct TC|
|000053b0| 50 50 61 72 61 6d 20 54 | 43 50 50 61 72 61 6d 3b |PParam T|CPParam;|
|000053c0| 0d 0d 73 74 72 75 63 74 | 20 54 43 50 53 74 61 74 |..struct| TCPStat|
|000053d0| 73 20 7b 0d 09 75 6e 73 | 69 67 6e 65 64 20 6c 6f |s {..uns|igned lo|
|000053e0| 6e 67 09 09 09 09 09 74 | 63 70 43 6f 6e 6e 41 74 |ng.....t|cpConnAt|
|000053f0| 74 65 6d 70 74 73 3b 0d | 09 75 6e 73 69 67 6e 65 |tempts;.|.unsigne|
|00005400| 64 20 6c 6f 6e 67 09 09 | 09 09 09 74 63 70 43 6f |d long..|...tcpCo|
|00005410| 6e 6e 4f 70 65 6e 65 64 | 3b 0d 09 75 6e 73 69 67 |nnOpened|;..unsig|
|00005420| 6e 65 64 20 6c 6f 6e 67 | 09 09 09 09 09 74 63 70 |ned long|.....tcp|
|00005430| 43 6f 6e 6e 41 63 63 65 | 70 74 65 64 3b 0d 09 75 |ConnAcce|pted;..u|
|00005440| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 09 09 09 09 |nsigned |long....|
|00005450| 09 74 63 70 43 6f 6e 6e | 43 6c 6f 73 65 64 3b 0d |.tcpConn|Closed;.|
|00005460| 09 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 09 09 |.unsigne|d long..|
|00005470| 09 09 09 74 63 70 43 6f | 6e 6e 41 62 6f 72 74 65 |...tcpCo|nnAborte|
|00005480| 64 3b 0d 09 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e |d;..unsi|gned lon|
|00005490| 67 09 09 09 09 09 74 63 | 70 4f 63 74 65 74 73 49 |g.....tc|pOctetsI|
|000054a0| 6e 3b 0d 09 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e |n;..unsi|gned lon|
|000054b0| 67 09 09 09 09 09 74 63 | 70 4f 63 74 65 74 73 4f |g.....tc|pOctetsO|
|000054c0| 75 74 3b 0d 09 75 6e 73 | 69 67 6e 65 64 20 6c 6f |ut;..uns|igned lo|
|000054d0| 6e 67 09 09 09 09 09 74 | 63 70 4f 63 74 65 74 73 |ng.....t|cpOctets|
|000054e0| 49 6e 44 75 70 3b 0d 09 | 75 6e 73 69 67 6e 65 64 |InDup;..|unsigned|
|000054f0| 20 6c 6f 6e 67 09 09 09 | 09 09 74 63 70 4f 63 74 | long...|..tcpOct|
|00005500| 65 74 73 52 65 74 72 61 | 6e 73 3b 0d 09 75 6e 73 |etsRetra|ns;..uns|
|00005510| 69 67 6e 65 64 20 6c 6f | 6e 67 09 09 09 09 09 74 |igned lo|ng.....t|
|00005520| 63 70 49 6e 70 75 74 50 | 6b 74 73 3b 0d 09 75 6e |cpInputP|kts;..un|
|00005530| 73 69 67 6e 65 64 20 6c | 6f 6e 67 09 09 09 09 09 |signed l|ong.....|
|00005540| 74 63 70 4f 75 74 70 75 | 74 50 6b 74 73 3b 0d 09 |tcpOutpu|tPkts;..|
|00005550| 75 6e 73 69 67 6e 65 64 | 20 6c 6f 6e 67 09 09 09 |unsigned| long...|
|00005560| 09 09 74 63 70 44 75 70 | 50 6b 74 73 3b 0d 09 75 |..tcpDup|Pkts;..u|
|00005570| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 09 09 09 09 |nsigned |long....|
|00005580| 09 74 63 70 52 65 74 72 | 61 6e 73 50 6b 74 73 3b |.tcpRetr|ansPkts;|
|00005590| 0d 7d 3b 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |.};.type|def stru|
|000055a0| 63 74 20 54 43 50 53 74 | 61 74 73 20 54 43 50 53 |ct TCPSt|ats TCPS|
|000055b0| 74 61 74 73 3b 0d 0d 74 | 79 70 65 64 65 66 20 53 |tats;..t|ypedef S|
|000055c0| 74 72 65 61 6d 50 74 72 | 20 2a 53 74 72 65 61 6d |treamPtr| *Stream|
|000055d0| 50 50 74 72 3b 0d 0d 73 | 74 72 75 63 74 20 54 43 |PPtr;..s|truct TC|
|000055e0| 50 47 6c 6f 62 61 6c 49 | 6e 66 6f 50 42 20 7b 0d |PGlobalI|nfoPB {.|
|000055f0| 09 73 74 72 75 63 74 20 | 54 43 50 50 61 72 61 6d |.struct |TCPParam|
|00005600| 09 09 09 09 09 2a 74 63 | 70 50 61 72 61 6d 50 74 |.....*tc|pParamPt|
|00005610| 72 3b 0d 09 73 74 72 75 | 63 74 20 54 43 50 53 74 |r;..stru|ct TCPSt|
|00005620| 61 74 73 09 09 09 09 09 | 2a 74 63 70 53 74 61 74 |ats.....|*tcpStat|
|00005630| 73 50 74 72 3b 0d 09 53 | 74 72 65 61 6d 50 50 74 |sPtr;..S|treamPPt|
|00005640| 72 09 09 09 09 09 09 74 | 63 70 43 44 42 54 61 62 |r......t|cpCDBTab|
|00005650| 6c 65 5b 31 5d 3b 0d 09 | 50 74 72 09 09 09 09 09 |le[1];..|Ptr.....|
|00005660| 09 09 09 75 73 65 72 44 | 61 74 61 50 74 72 3b 0d |...userD|ataPtr;.|
|00005670| 09 75 6e 73 69 67 6e 65 | 64 20 73 68 6f 72 74 09 |.unsigne|d short.|
|00005680| 09 09 09 09 6d 61 78 54 | 43 50 43 6f 6e 6e 65 63 |....maxT|CPConnec|
|00005690| 74 69 6f 6e 73 3b 0d 7d | 3b 0d 74 79 70 65 64 65 |tions;.}|;.typede|
|000056a0| 66 20 73 74 72 75 63 74 | 20 54 43 50 47 6c 6f 62 |f struct| TCPGlob|
|000056b0| 61 6c 49 6e 66 6f 50 42 | 20 54 43 50 47 6c 6f 62 |alInfoPB| TCPGlob|
|000056c0| 61 6c 49 6e 66 6f 50 42 | 3b 0d 0d 74 79 70 65 64 |alInfoPB|;..typed|
|000056d0| 65 66 20 76 6f 69 64 20 | 28 2a 54 43 50 49 4f 43 |ef void |(*TCPIOC|
|000056e0| 6f 6d 70 6c 65 74 69 6f | 6e 50 72 6f 63 50 74 72 |ompletio|nProcPtr|
|000056f0| 29 28 73 74 72 75 63 74 | 20 54 43 50 69 6f 70 62 |)(struct| TCPiopb|
|00005700| 20 2a 69 6f 70 62 29 3b | 0d 0d 23 69 66 20 47 45 | *iopb);|..#if GE|
|00005710| 4e 45 52 41 54 49 4e 47 | 43 46 4d 0d 74 79 70 65 |NERATING|CFM.type|
|00005720| 64 65 66 20 55 6e 69 76 | 65 72 73 61 6c 50 72 6f |def Univ|ersalPro|
|00005730| 63 50 74 72 20 54 43 50 | 49 4f 43 6f 6d 70 6c 65 |cPtr TCP|IOComple|
|00005740| 74 69 6f 6e 55 50 50 3b | 0d 23 65 6c 73 65 0d 74 |tionUPP;|.#else.t|
|00005750| 79 70 65 64 65 66 20 54 | 43 50 49 4f 43 6f 6d 70 |ypedef T|CPIOComp|
|00005760| 6c 65 74 69 6f 6e 50 72 | 6f 63 50 74 72 20 54 43 |letionPr|ocPtr TC|
|00005770| 50 49 4f 43 6f 6d 70 6c | 65 74 69 6f 6e 55 50 50 |PIOCompl|etionUPP|
|00005780| 3b 0d 23 65 6e 64 69 66 | 0d 0d 73 74 72 75 63 74 |;.#endif|..struct|
|00005790| 20 54 43 50 69 6f 70 62 | 20 7b 0d 09 63 68 61 72 | TCPiopb| {..char|
|000057a0| 09 09 09 09 09 09 09 66 | 69 6c 6c 31 32 5b 31 32 |.......f|ill12[12|
|000057b0| 5d 3b 0d 09 54 43 50 49 | 4f 43 6f 6d 70 6c 65 74 |];..TCPI|OComplet|
|000057c0| 69 6f 6e 55 50 50 09 09 | 09 09 69 6f 43 6f 6d 70 |ionUPP..|..ioComp|
|000057d0| 6c 65 74 69 6f 6e 3b 0d | 09 73 68 6f 72 74 09 09 |letion;.|.short..|
|000057e0| 09 09 09 09 09 69 6f 52 | 65 73 75 6c 74 3b 0d 09 |.....ioR|esult;..|
|000057f0| 63 68 61 72 09 09 09 09 | 09 09 09 2a 69 6f 4e 61 |char....|...*ioNa|
|00005800| 6d 65 50 74 72 3b 0d 09 | 73 68 6f 72 74 09 09 09 |mePtr;..|short...|
|00005810| 09 09 09 09 69 6f 56 52 | 65 66 4e 75 6d 3b 0d 09 |....ioVR|efNum;..|
|00005820| 73 68 6f 72 74 09 09 09 | 09 09 09 09 69 6f 43 52 |short...|....ioCR|
|00005830| 65 66 4e 75 6d 3b 0d 09 | 73 68 6f 72 74 09 09 09 |efNum;..|short...|
|00005840| 09 09 09 09 63 73 43 6f | 64 65 3b 0d 09 53 74 72 |....csCo|de;..Str|
|00005850| 65 61 6d 50 74 72 09 09 | 09 09 09 09 74 63 70 53 |eamPtr..|....tcpS|
|00005860| 74 72 65 61 6d 3b 0d 09 | 09 75 6e 69 6f 6e 20 7b |tream;..|.union {|
|00005870| 0d 09 09 09 73 74 72 75 | 63 74 20 54 43 50 43 72 |....stru|ct TCPCr|
|00005880| 65 61 74 65 50 42 09 09 | 09 09 63 72 65 61 74 65 |eatePB..|..create|
|00005890| 3b 0d 09 09 09 73 74 72 | 75 63 74 20 54 43 50 4f |;....str|uct TCPO|
|000058a0| 70 65 6e 50 42 09 09 09 | 09 6f 70 65 6e 3b 0d 09 |penPB...|.open;..|
|000058b0| 09 09 73 74 72 75 63 74 | 20 54 43 50 53 65 6e 64 |..struct| TCPSend|
|000058c0| 50 42 09 09 09 09 73 65 | 6e 64 3b 0d 09 09 09 73 |PB....se|nd;....s|
|000058d0| 74 72 75 63 74 20 54 43 | 50 52 65 63 65 69 76 65 |truct TC|PReceive|
|000058e0| 50 42 09 09 09 09 72 65 | 63 65 69 76 65 3b 0d 09 |PB....re|ceive;..|
|000058f0| 09 09 73 74 72 75 63 74 | 20 54 43 50 43 6c 6f 73 |..struct| TCPClos|
|00005900| 65 50 42 09 09 09 09 63 | 6c 6f 73 65 3b 0d 09 09 |ePB....c|lose;...|
|00005910| 09 73 74 72 75 63 74 20 | 54 43 50 41 62 6f 72 74 |.struct |TCPAbort|
|00005920| 50 42 09 09 09 09 61 62 | 6f 72 74 3b 0d 09 09 09 |PB....ab|ort;....|
|00005930| 73 74 72 75 63 74 20 54 | 43 50 53 74 61 74 75 73 |struct T|CPStatus|
|00005940| 50 42 09 09 09 09 73 74 | 61 74 75 73 3b 0d 09 09 |PB....st|atus;...|
|00005950| 09 73 74 72 75 63 74 20 | 54 43 50 47 6c 6f 62 61 |.struct |TCPGloba|
|00005960| 6c 49 6e 66 6f 50 42 09 | 09 09 67 6c 6f 62 61 6c |lInfoPB.|..global|
|00005970| 49 6e 66 6f 3b 0d 09 09 | 7d 09 09 09 09 09 09 09 |Info;...|}.......|
|00005980| 63 73 50 61 72 61 6d 3b | 0d 7d 3b 0d 74 79 70 65 |csParam;|.};.type|
|00005990| 64 65 66 20 73 74 72 75 | 63 74 20 54 43 50 69 6f |def stru|ct TCPio|
|000059a0| 70 62 20 54 43 50 69 6f | 70 62 3b 0d 0d 0d 23 69 |pb TCPio|pb;...#i|
|000059b0| 66 20 47 45 4e 45 52 41 | 54 49 4e 47 43 46 4d 0d |f GENERA|TINGCFM.|
|000059c0| 23 65 6c 73 65 0d 23 65 | 6e 64 69 66 0d 0d 65 6e |#else.#e|ndif..en|
|000059d0| 75 6d 20 7b 0d 09 75 70 | 70 54 43 50 49 4f 43 6f |um {..up|pTCPIOCo|
|000059e0| 6d 70 6c 65 74 69 6f 6e | 50 72 6f 63 49 6e 66 6f |mpletion|ProcInfo|
|000059f0| 20 3d 20 6b 43 53 74 61 | 63 6b 42 61 73 65 64 0d | = kCSta|ckBased.|
|00005a00| 09 09 20 7c 20 53 54 41 | 43 4b 5f 52 4f 55 54 49 |.. | STA|CK_ROUTI|
|00005a10| 4e 45 5f 50 41 52 41 4d | 45 54 45 52 28 31 2c 20 |NE_PARAM|ETER(1, |
|00005a20| 53 49 5a 45 5f 43 4f 44 | 45 28 73 69 7a 65 6f 66 |SIZE_COD|E(sizeof|
|00005a30| 28 73 74 72 75 63 74 20 | 54 43 50 69 6f 70 62 2a |(struct |TCPiopb*|
|00005a40| 29 29 29 0d 7d 3b 0d 0d | 23 69 66 20 47 45 4e 45 |))).};..|#if GENE|
|00005a50| 52 41 54 49 4e 47 43 46 | 4d 0d 23 64 65 66 69 6e |RATINGCF|M.#defin|
|00005a60| 65 20 4e 65 77 54 43 50 | 49 4f 43 6f 6d 70 6c 65 |e NewTCP|IOComple|
|00005a70| 74 69 6f 6e 50 72 6f 63 | 28 75 73 65 72 52 6f 75 |tionProc|(userRou|
|00005a80| 74 69 6e 65 29 09 09 5c | 0d 09 09 28 54 43 50 49 |tine)..\|...(TCPI|
|00005a90| 4f 43 6f 6d 70 6c 65 74 | 69 6f 6e 55 50 50 29 20 |OComplet|ionUPP) |
|00005aa0| 4e 65 77 52 6f 75 74 69 | 6e 65 44 65 73 63 72 69 |NewRouti|neDescri|
|00005ab0| 70 74 6f 72 28 28 50 72 | 6f 63 50 74 72 29 28 75 |ptor((Pr|ocPtr)(u|
|00005ac0| 73 65 72 52 6f 75 74 69 | 6e 65 29 2c 20 75 70 70 |serRouti|ne), upp|
|00005ad0| 54 43 50 49 4f 43 6f 6d | 70 6c 65 74 69 6f 6e 50 |TCPIOCom|pletionP|
|00005ae0| 72 6f 63 49 6e 66 6f 2c | 20 47 65 74 43 75 72 72 |rocInfo,| GetCurr|
|00005af0| 65 6e 74 41 72 63 68 69 | 74 65 63 74 75 72 65 28 |entArchi|tecture(|
|00005b00| 29 29 0d 23 65 6c 73 65 | 0d 23 64 65 66 69 6e 65 |)).#else|.#define|
|00005b10| 20 4e 65 77 54 43 50 49 | 4f 43 6f 6d 70 6c 65 74 | NewTCPI|OComplet|
|00005b20| 69 6f 6e 50 72 6f 63 28 | 75 73 65 72 52 6f 75 74 |ionProc(|userRout|
|00005b30| 69 6e 65 29 09 09 5c 0d | 09 09 28 28 54 43 50 49 |ine)..\.|..((TCPI|
|00005b40| 4f 43 6f 6d 70 6c 65 74 | 69 6f 6e 55 50 50 29 20 |OComplet|ionUPP) |
|00005b50| 28 75 73 65 72 52 6f 75 | 74 69 6e 65 29 29 0d 23 |(userRou|tine)).#|
|00005b60| 65 6e 64 69 66 0d 0d 23 | 69 66 20 47 45 4e 45 52 |endif..#|if GENER|
|00005b70| 41 54 49 4e 47 43 46 4d | 0d 23 64 65 66 69 6e 65 |ATINGCFM|.#define|
|00005b80| 20 43 61 6c 6c 54 43 50 | 49 4f 43 6f 6d 70 6c 65 | CallTCP|IOComple|
|00005b90| 74 69 6f 6e 50 72 6f 63 | 28 75 73 65 72 52 6f 75 |tionProc|(userRou|
|00005ba0| 74 69 6e 65 2c 20 69 6f | 70 62 29 09 09 5c 0d 09 |tine, io|pb)..\..|
|00005bb0| 09 43 61 6c 6c 55 6e 69 | 76 65 72 73 61 6c 50 72 |.CallUni|versalPr|
|00005bc0| 6f 63 28 28 55 6e 69 76 | 65 72 73 61 6c 50 72 6f |oc((Univ|ersalPro|
|00005bd0| 63 50 74 72 29 28 75 73 | 65 72 52 6f 75 74 69 6e |cPtr)(us|erRoutin|
|00005be0| 65 29 2c 20 75 70 70 54 | 43 50 49 4f 43 6f 6d 70 |e), uppT|CPIOComp|
|00005bf0| 6c 65 74 69 6f 6e 50 72 | 6f 63 49 6e 66 6f 2c 20 |letionPr|ocInfo, |
|00005c00| 28 69 6f 70 62 29 29 0d | 23 65 6c 73 65 0d 23 64 |(iopb)).|#else.#d|
|00005c10| 65 66 69 6e 65 20 43 61 | 6c 6c 54 43 50 49 4f 43 |efine Ca|llTCPIOC|
|00005c20| 6f 6d 70 6c 65 74 69 6f | 6e 50 72 6f 63 28 75 73 |ompletio|nProc(us|
|00005c30| 65 72 52 6f 75 74 69 6e | 65 2c 20 69 6f 70 62 29 |erRoutin|e, iopb)|
|00005c40| 09 09 5c 0d 09 09 28 2a | 28 75 73 65 72 52 6f 75 |..\...(*|(userRou|
|00005c50| 74 69 6e 65 29 29 28 28 | 69 6f 70 62 29 29 0d 23 |tine))((|iopb)).#|
|00005c60| 65 6e 64 69 66 0d 0d 0d | 65 6e 75 6d 20 7b 0d 09 |endif...|enum {..|
|00005c70| 55 44 50 43 72 65 61 74 | 65 09 09 09 09 09 3d 20 |UDPCreat|e.....= |
|00005c80| 32 30 2c 0d 09 55 44 50 | 52 65 61 64 09 09 09 09 |20,..UDP|Read....|
|00005c90| 09 09 3d 20 32 31 2c 0d | 09 55 44 50 42 66 72 52 |..= 21,.|.UDPBfrR|
|00005ca0| 65 74 75 72 6e 09 09 09 | 09 3d 20 32 32 2c 0d 09 |eturn...|.= 22,..|
|00005cb0| 55 44 50 57 72 69 74 65 | 09 09 09 09 09 3d 20 32 |UDPWrite|.....= 2|
|00005cc0| 33 2c 0d 09 55 44 50 52 | 65 6c 65 61 73 65 09 09 |3,..UDPR|elease..|
|00005cd0| 09 09 09 3d 20 32 34 2c | 0d 09 55 44 50 4d 61 78 |...= 24,|..UDPMax|
|00005ce0| 4d 54 55 53 69 7a 65 09 | 09 09 09 3d 20 32 35 2c |MTUSize.|...= 25,|
|00005cf0| 0d 09 55 44 50 53 74 61 | 74 75 73 09 09 09 09 09 |..UDPSta|tus.....|
|00005d00| 3d 20 32 36 2c 0d 09 55 | 44 50 4d 75 6c 74 69 43 |= 26,..U|DPMultiC|
|00005d10| 72 65 61 74 65 09 09 09 | 09 3d 20 32 37 2c 0d 09 |reate...|.= 27,..|
|00005d20| 55 44 50 4d 75 6c 74 69 | 53 65 6e 64 09 09 09 09 |UDPMulti|Send....|
|00005d30| 3d 20 32 38 2c 0d 09 55 | 44 50 4d 75 6c 74 69 52 |= 28,..U|DPMultiR|
|00005d40| 65 61 64 09 09 09 09 3d | 20 32 39 2c 0d 09 55 44 |ead....=| 29,..UD|
|00005d50| 50 43 74 6c 4d 61 78 09 | 09 09 09 09 3d 20 32 39 |PCtlMax.|....= 29|
|00005d60| 0d 7d 3b 0d 0d 65 6e 75 | 6d 20 7b 0d 09 55 44 50 |.};..enu|m {..UDP|
|00005d70| 44 61 74 61 41 72 72 69 | 76 61 6c 09 09 09 09 3d |DataArri|val....=|
|00005d80| 20 31 2c 0d 09 55 44 50 | 49 43 4d 50 52 65 63 65 | 1,..UDP|ICMPRece|
|00005d90| 69 76 65 64 09 09 09 09 | 3d 20 32 0d 7d 3b 0d 0d |ived....|= 2.};..|
|00005da0| 74 79 70 65 64 65 66 20 | 75 6e 73 69 67 6e 65 64 |typedef |unsigned|
|00005db0| 20 73 68 6f 72 74 20 55 | 44 50 45 76 65 6e 74 43 | short U|DPEventC|
|00005dc0| 6f 64 65 3b 0d 0d 74 79 | 70 65 64 65 66 20 70 61 |ode;..ty|pedef pa|
|00005dd0| 73 63 61 6c 20 76 6f 69 | 64 20 28 2a 55 44 50 4e |scal voi|d (*UDPN|
|00005de0| 6f 74 69 66 79 50 72 6f | 63 50 74 72 29 28 53 74 |otifyPro|cPtr)(St|
|00005df0| 72 65 61 6d 50 74 72 20 | 75 64 70 53 74 72 65 61 |reamPtr |udpStrea|
|00005e00| 6d 2c 20 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 |m, unsig|ned shor|
|00005e10| 74 20 65 76 65 6e 74 43 | 6f 64 65 2c 20 50 74 72 |t eventC|ode, Ptr|
|00005e20| 20 75 73 65 72 44 61 74 | 61 50 74 72 2c 20 73 74 | userDat|aPtr, st|
|00005e30| 72 75 63 74 20 49 43 4d | 50 52 65 70 6f 72 74 20 |ruct ICM|PReport |
|00005e40| 2a 69 63 6d 70 4d 73 67 | 29 3b 0d 0d 23 69 66 20 |*icmpMsg|);..#if |
|00005e50| 47 45 4e 45 52 41 54 49 | 4e 47 43 46 4d 0d 74 79 |GENERATI|NGCFM.ty|
|00005e60| 70 65 64 65 66 20 55 6e | 69 76 65 72 73 61 6c 50 |pedef Un|iversalP|
|00005e70| 72 6f 63 50 74 72 20 55 | 44 50 4e 6f 74 69 66 79 |rocPtr U|DPNotify|
|00005e80| 55 50 50 3b 0d 23 65 6c | 73 65 0d 74 79 70 65 64 |UPP;.#el|se.typed|
|00005e90| 65 66 20 55 44 50 4e 6f | 74 69 66 79 50 72 6f 63 |ef UDPNo|tifyProc|
|00005ea0| 50 74 72 20 55 44 50 4e | 6f 74 69 66 79 55 50 50 |Ptr UDPN|otifyUPP|
|00005eb0| 3b 0d 23 65 6e 64 69 66 | 0d 0d 65 6e 75 6d 20 7b |;.#endif|..enum {|
|00005ec0| 0d 09 75 70 70 55 44 50 | 4e 6f 74 69 66 79 50 72 |..uppUDP|NotifyPr|
|00005ed0| 6f 63 49 6e 66 6f 20 3d | 20 6b 50 61 73 63 61 6c |ocInfo =| kPascal|
|00005ee0| 53 74 61 63 6b 42 61 73 | 65 64 0d 09 09 20 7c 20 |StackBas|ed... | |
|00005ef0| 53 54 41 43 4b 5f 52 4f | 55 54 49 4e 45 5f 50 41 |STACK_RO|UTINE_PA|
|00005f00| 52 41 4d 45 54 45 52 28 | 31 2c 20 53 49 5a 45 5f |RAMETER(|1, SIZE_|
|00005f10| 43 4f 44 45 28 73 69 7a | 65 6f 66 28 53 74 72 65 |CODE(siz|eof(Stre|
|00005f20| 61 6d 50 74 72 29 29 29 | 0d 09 09 20 7c 20 53 54 |amPtr)))|... | ST|
|00005f30| 41 43 4b 5f 52 4f 55 54 | 49 4e 45 5f 50 41 52 41 |ACK_ROUT|INE_PARA|
|00005f40| 4d 45 54 45 52 28 32 2c | 20 53 49 5a 45 5f 43 4f |METER(2,| SIZE_CO|
|00005f50| 44 45 28 73 69 7a 65 6f | 66 28 75 6e 73 69 67 6e |DE(sizeo|f(unsign|
|00005f60| 65 64 20 73 68 6f 72 74 | 29 29 29 0d 09 09 20 7c |ed short|)))... ||
|00005f70| 20 53 54 41 43 4b 5f 52 | 4f 55 54 49 4e 45 5f 50 | STACK_R|OUTINE_P|
|00005f80| 41 52 41 4d 45 54 45 52 | 28 33 2c 20 53 49 5a 45 |ARAMETER|(3, SIZE|
|00005f90| 5f 43 4f 44 45 28 73 69 | 7a 65 6f 66 28 50 74 72 |_CODE(si|zeof(Ptr|
|00005fa0| 29 29 29 0d 09 09 20 7c | 20 53 54 41 43 4b 5f 52 |)))... || STACK_R|
|00005fb0| 4f 55 54 49 4e 45 5f 50 | 41 52 41 4d 45 54 45 52 |OUTINE_P|ARAMETER|
|00005fc0| 28 34 2c 20 53 49 5a 45 | 5f 43 4f 44 45 28 73 69 |(4, SIZE|_CODE(si|
|00005fd0| 7a 65 6f 66 28 73 74 72 | 75 63 74 20 49 43 4d 50 |zeof(str|uct ICMP|
|00005fe0| 52 65 70 6f 72 74 2a 29 | 29 29 0d 7d 3b 0d 0d 23 |Report*)|)).};..#|
|00005ff0| 69 66 20 47 45 4e 45 52 | 41 54 49 4e 47 43 46 4d |if GENER|ATINGCFM|
|00006000| 0d 23 64 65 66 69 6e 65 | 20 4e 65 77 55 44 50 4e |.#define| NewUDPN|
|00006010| 6f 74 69 66 79 50 72 6f | 63 28 75 73 65 72 52 6f |otifyPro|c(userRo|
|00006020| 75 74 69 6e 65 29 09 09 | 5c 0d 09 09 28 55 44 50 |utine)..|\...(UDP|
|00006030| 4e 6f 74 69 66 79 55 50 | 50 29 20 4e 65 77 52 6f |NotifyUP|P) NewRo|
|00006040| 75 74 69 6e 65 44 65 73 | 63 72 69 70 74 6f 72 28 |utineDes|criptor(|
|00006050| 28 50 72 6f 63 50 74 72 | 29 28 75 73 65 72 52 6f |(ProcPtr|)(userRo|
|00006060| 75 74 69 6e 65 29 2c 20 | 75 70 70 55 44 50 4e 6f |utine), |uppUDPNo|
|00006070| 74 69 66 79 50 72 6f 63 | 49 6e 66 6f 2c 20 47 65 |tifyProc|Info, Ge|
|00006080| 74 43 75 72 72 65 6e 74 | 41 72 63 68 69 74 65 63 |tCurrent|Architec|
|00006090| 74 75 72 65 28 29 29 0d | 23 65 6c 73 65 0d 23 64 |ture()).|#else.#d|
|000060a0| 65 66 69 6e 65 20 4e 65 | 77 55 44 50 4e 6f 74 69 |efine Ne|wUDPNoti|
|000060b0| 66 79 50 72 6f 63 28 75 | 73 65 72 52 6f 75 74 69 |fyProc(u|serRouti|
|000060c0| 6e 65 29 09 09 5c 0d 09 | 09 28 28 55 44 50 4e 6f |ne)..\..|.((UDPNo|
|000060d0| 74 69 66 79 55 50 50 29 | 20 28 75 73 65 72 52 6f |tifyUPP)| (userRo|
|000060e0| 75 74 69 6e 65 29 29 0d | 23 65 6e 64 69 66 0d 0d |utine)).|#endif..|
|000060f0| 23 69 66 20 47 45 4e 45 | 52 41 54 49 4e 47 43 46 |#if GENE|RATINGCF|
|00006100| 4d 0d 23 64 65 66 69 6e | 65 20 43 61 6c 6c 55 44 |M.#defin|e CallUD|
|00006110| 50 4e 6f 74 69 66 79 50 | 72 6f 63 28 75 73 65 72 |PNotifyP|roc(user|
|00006120| 52 6f 75 74 69 6e 65 2c | 20 75 64 70 53 74 72 65 |Routine,| udpStre|
|00006130| 61 6d 2c 20 65 76 65 6e | 74 43 6f 64 65 2c 20 75 |am, even|tCode, u|
|00006140| 73 65 72 44 61 74 61 50 | 74 72 2c 20 69 63 6d 70 |serDataP|tr, icmp|
|00006150| 4d 73 67 29 09 09 5c 0d | 09 09 43 61 6c 6c 55 6e |Msg)..\.|..CallUn|
|00006160| 69 76 65 72 73 61 6c 50 | 72 6f 63 28 28 55 6e 69 |iversalP|roc((Uni|
|00006170| 76 65 72 73 61 6c 50 72 | 6f 63 50 74 72 29 28 75 |versalPr|ocPtr)(u|
|00006180| 73 65 72 52 6f 75 74 69 | 6e 65 29 2c 20 75 70 70 |serRouti|ne), upp|
|00006190| 55 44 50 4e 6f 74 69 66 | 79 50 72 6f 63 49 6e 66 |UDPNotif|yProcInf|
|000061a0| 6f 2c 20 28 75 64 70 53 | 74 72 65 61 6d 29 2c 20 |o, (udpS|tream), |
|000061b0| 28 65 76 65 6e 74 43 6f | 64 65 29 2c 20 28 75 73 |(eventCo|de), (us|
|000061c0| 65 72 44 61 74 61 50 74 | 72 29 2c 20 28 69 63 6d |erDataPt|r), (icm|
|000061d0| 70 4d 73 67 29 29 0d 23 | 65 6c 73 65 0d 23 64 65 |pMsg)).#|else.#de|
|000061e0| 66 69 6e 65 20 43 61 6c | 6c 55 44 50 4e 6f 74 69 |fine Cal|lUDPNoti|
|000061f0| 66 79 50 72 6f 63 28 75 | 73 65 72 52 6f 75 74 69 |fyProc(u|serRouti|
|00006200| 6e 65 2c 20 75 64 70 53 | 74 72 65 61 6d 2c 20 65 |ne, udpS|tream, e|
|00006210| 76 65 6e 74 43 6f 64 65 | 2c 20 75 73 65 72 44 61 |ventCode|, userDa|
|00006220| 74 61 50 74 72 2c 20 69 | 63 6d 70 4d 73 67 29 09 |taPtr, i|cmpMsg).|
|00006230| 09 5c 0d 09 09 28 2a 28 | 75 73 65 72 52 6f 75 74 |.\...(*(|userRout|
|00006240| 69 6e 65 29 29 28 28 75 | 64 70 53 74 72 65 61 6d |ine))((u|dpStream|
|00006250| 29 2c 20 28 65 76 65 6e | 74 43 6f 64 65 29 2c 20 |), (even|tCode), |
|00006260| 28 75 73 65 72 44 61 74 | 61 50 74 72 29 2c 20 28 |(userDat|aPtr), (|
|00006270| 69 63 6d 70 4d 73 67 29 | 29 0d 23 65 6e 64 69 66 |icmpMsg)|).#endif|
|00006280| 0d 0d 74 79 70 65 64 65 | 66 20 75 6e 73 69 67 6e |..typede|f unsign|
|00006290| 65 64 20 73 68 6f 72 74 | 20 75 64 70 5f 70 6f 72 |ed short| udp_por|
|000062a0| 74 3b 0d 0d 2f 2a 20 66 | 6f 72 20 63 72 65 61 74 |t;../* f|or creat|
|000062b0| 65 20 61 6e 64 20 72 65 | 6c 65 61 73 65 20 63 61 |e and re|lease ca|
|000062c0| 6c 6c 73 20 2a 2f 0d 73 | 74 72 75 63 74 20 55 44 |lls */.s|truct UD|
|000062d0| 50 43 72 65 61 74 65 50 | 42 20 7b 0d 09 50 74 72 |PCreateP|B {..Ptr|
|000062e0| 09 09 09 09 09 09 09 09 | 72 63 76 42 75 66 66 3b |........|rcvBuff;|
|000062f0| 0d 09 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 09 |..unsign|ed long.|
|00006300| 09 09 09 09 72 63 76 42 | 75 66 66 4c 65 6e 3b 0d |....rcvB|uffLen;.|
|00006310| 09 55 44 50 4e 6f 74 69 | 66 79 55 50 50 09 09 09 |.UDPNoti|fyUPP...|
|00006320| 09 09 6e 6f 74 69 66 79 | 50 72 6f 63 3b 0d 09 75 |..notify|Proc;..u|
|00006330| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 09 09 09 |nsigned |short...|
|00006340| 09 09 6c 6f 63 61 6c 50 | 6f 72 74 3b 0d 09 50 74 |..localP|ort;..Pt|
|00006350| 72 09 09 09 09 09 09 09 | 09 75 73 65 72 44 61 74 |r.......|.userDat|
|00006360| 61 50 74 72 3b 0d 09 75 | 64 70 5f 70 6f 72 74 09 |aPtr;..u|dp_port.|
|00006370| 09 09 09 09 09 65 6e 64 | 69 6e 67 50 6f 72 74 3b |.....end|ingPort;|
|00006380| 0d 7d 3b 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |.};.type|def stru|
|00006390| 63 74 20 55 44 50 43 72 | 65 61 74 65 50 42 20 55 |ct UDPCr|eatePB U|
|000063a0| 44 50 43 72 65 61 74 65 | 50 42 3b 0d 0d 73 74 72 |DPCreate|PB;..str|
|000063b0| 75 63 74 20 55 44 50 53 | 65 6e 64 50 42 20 7b 0d |uct UDPS|endPB {.|
|000063c0| 09 75 6e 73 69 67 6e 65 | 64 20 73 68 6f 72 74 09 |.unsigne|d short.|
|000063d0| 09 09 09 09 72 65 73 65 | 72 76 65 64 3b 0d 09 69 |....rese|rved;..i|
|000063e0| 70 5f 61 64 64 72 09 09 | 09 09 09 09 09 72 65 6d |p_addr..|.....rem|
|000063f0| 6f 74 65 48 6f 73 74 3b | 0d 09 75 64 70 5f 70 6f |oteHost;|..udp_po|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.